Reverse an Array
Write a program that prompts the user to enter the size of an array (maximum of 10 elements).
Then prompt the user to enter the value of each element of the array.
Then your program must print to the screen the result of reversing the array.
For reversing the array you must use a function with the following header
void reverseArray(int A[ ], int size)
The array must be reversed in place.
Enter size of the array to reverse(max-size is 10):5Enter the 5 elements for the array:1 2 3 4 5The original array is:[1, 2, 3, 4, 5]The reversed array is:[5, 4, 3, 2, 1] |