Without changing too much, try this instead:
#include <iostream.h>
#include <conio.h>
void main()
{
clrscr();
int *p1,n,i;
cout<<"Enter the size of the array ";
cin>>n;
p1=new int[n];
for(i=0;i<n;i++)
cin>>p1[i];
for(i=n;i>0;i--)
cout<<p1[i-1];
delete [] p1;
getch();
}
Regards,
Ian.