Input
Output
#include <iostream> using namespace std; int main() { int x=20; int *p1,**p2; p1=&x; /* x address store in p1 pointer variable */ p2=&p1; /* double pointer */ cout << "Address of x variable is " << &x << endl; cout << "Address of p1 variable is " << p1 << endl; cout << "Address of p2 variable is " << p2 << endl; cout << "Value of *p1 variable is " << *p1 << endl; cout << "Value of **p2 variable is " << **p2 << endl; return 0; }