invert an array cpp code example
Example: reverse an array in cpp
#include<iostream>
using namespace std;
int main()
{
int n=3;
int arr[]={1,2,3,4};
while (n>=0)
{
cout<<arr[n];
n--;
}
return 0;
}