#include<iostream>
using namespace std;
int main()
{
int *p,n,**q;
p=&n;
q=&p;
cout<<"Enter a number:";
cin>>n;
cout<<"\n"<<n;
cout<<"\n"<<p;
cout<<"\n"<<*p;
cout<<"\n"<<q;
cout<<"\n"<<**q;
return 0;
}
using namespace std;
int main()
{
int *p,n,**q;
p=&n;
q=&p;
cout<<"Enter a number:";
cin>>n;
cout<<"\n"<<n;
cout<<"\n"<<p;
cout<<"\n"<<*p;
cout<<"\n"<<q;
cout<<"\n"<<**q;
return 0;
}
0 comments:
Post a Comment