/* Double pointer program */ #include #include #include using namespace std ; int main(int argc , char** args) { int x1 = 100 ; int x2 = 200 ; int* ptr1 ; int** doublePtr ; ptr1 = &x1 ; doublePtr = &ptr1 ; cout << *ptr1 << endl ; //2 Levels of indirection cout << **doublePtr << endl ; *doublePtr = &x2 ; cout << **doublePtr << endl ; cout << *ptr1 << endl ; return(1) ; }