#include using namespace std; int main() { int i=999; // can assign an integer to i int* p_i; // can assign an address to p_i p_i = &i; // p_i is the address of the variable i cout << " i " << i << endl; cout << " address of i " << &i << endl; cout << " value of p_i " << p_i << endl; cout << " value of &p_i " << &p_i << endl; cout << " value of *p_i " << *p_i << endl; *p_i=1010; // alter the value at the address p_i cout << i << endl; cout << &i << endl; cout << p_i << endl; cout << *p_i << endl; return(0); }