#include<iostream.h>
#include<conio.h>
void main()
{
int *ptr,*a,i;
*ptr=10;
a=ptr;
clrscr();
cout<<ptr<<endl<<a;
int n;
cin>>n;
cout<<endl<<"enter the elements :";
for(i=0;i<n;i++)
{
cin>>*ptr;
ptr++;
}
ptr=a;
cout<<"\nu ve entered :";
for(i=0;i<n;i++)
{
cout<<*ptr;
ptr++;
}
getch();
}
No comments:
Post a Comment