You need to save the pointer at teh start, and restore it when you are startign the second loop:
int *p1, *pStart;
int n,i;
cout<<"Enter size of array ";
cin>>n;
pStart=new int[n];
p1 = pStart;
for(i=0;i<n;i++)
cin>>*p1++;
cout<<"output values "<<endl;
p1 = pStart;
for(i=0;i<n;i++)
cout<<*p1++;
delete [] (pStart);
Note that you should also get into the habit of deleting anything you allocate when you are finished with it!