Question: Write a function that takes a one-dimensional array of integers and reverses the det of the elements. For example if the elements are (23,4, 25,
Write a function that takes a one-dimensional array of integers and reverses the det of the elements. For example if the elements are (23,4, 25, 67, 8) they should become (8,67,25, 4, 23) after the function is called, and if they (23,4,67, 8) are they should become (8, 87,4, 22) after the function is called. Use the function with a main function that asks the user how many elements they want, crec et on array with that many elements, inputs the array elements, and then outputs the elements after reversing them using the function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
