Keyboard input from the array a [n] value of each element (each one per a student number, respectively, as an array of values of n elements), the access mode using the pointer array elements in the reverse order output.
#include<iostream>
using namespace std;
int main()
{
int math[5];
int i,j;
int *p;
p=math;
for(i=1;i<=5;i++)
{
cin>>math[i];
}
for(p=math+5;p>math;p--)
{
cout<<*p<<" ";
}
return 0;
}