#include<iostream>
using namespace std;
int main()
{
    int a[5],i;
    int *p=a;
    cout<<"请输入5个整数: "<<endl;
    for(p=a;p<a+5;p++)
        {
            cin>>*p;
        }
    cout<<"反向输出: ";
    for(p=p-1;p>=a;p--)
        {
            cout<<*p<<" ";
        }
        
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: