Probably you are doing it as an exercise on
C
-like arrays.
Anyway I make you aware that
C++
provides containers and iterators
#include <iostream>
#include <vector>
#include <iterator>
using namespace std;
int main()
{
int n;
cout << "please enter the number of the array elements\n";
cin >> n;
vector <int> v(n,0);
cout << "now, please, enter the array elements\n";
for ( auto & x : v)
cin >> x;
for ( auto it = rbegin(v); it != rend(v); ++it)
cout << (*it) << " ";
cout << endl;
}