Question: Write a function that reverses the elements of an array so that the last element becomes the first, the second from the last becomes the
Write a function that reverses the elements of an array so that the last element becomes the first, the second from the last becomes the second, and the forth. The function is to reverse the elements in place - that is, without using another array. Then write a test driver to test your function. Test is twice, once with an even number of elements in the array and once with an odd number of elements in the array. ( need in c++ and show output)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
