How to write a C++ program to Reverse an Array+
Array store all data in array on the basis of index. For reverse an array element you nedd to interchange elements of array on the basis of index value
Example :
Output :
How many elements you want to enter : 5 Enter any 5 elements in Array: 1 4 2 7 5 Reverse of Array: 5 7 2 4 1