#include using namespace std; int main() { int prevInt=1111, i=1024, nextInt = 2222; int *ip; cout << "Initially: \n"; cout << "1. ip is " << ip <<" and it points to " << *ip << endl; ip = &i; cout << "\nAfter executing ip = &i : \n"; cout << "2. ip is " << ip <<" and it points to " << *ip << endl; i=512; cout << "\nAfter executing i=512 : \n"; cout << "3. ip is " << ip <<" and it points to " << *ip << endl; *ip = 256; cout << "\nAfter executing *ip = 256 : \n"; cout << "4. ip is " << ip <<" and it points to " << *ip << endl; ip = ip - 1; cout << "\nAfter executing ip = ip - 1 : \n"; cout << "5. ip is " << ip <<" and it points to " << *ip << endl; cout << "The address of nextInt is " << &nextInt << endl; return 0; }