/* you should be able to predict what the cout statements of this program, you will be asked to do something similar */ int main() { int a=7;// the address of a:0x7ffd1ffee6c4 int arr[]={4,1,5,2,3}; // the addresses of the elements 0x7ffd1ffee6e0, 0x7ffd1ffee6e4, 0x7ffd1ffee6e8, 0x7ffd1ffee6ec, 0x7ffd1ffee6f0 int * b =&a; int * c = arr; int * d = arr+1; // you will be given something similar to the above and you should be able to predict the values for any // of the lines below cout << "a:" << a << endl; cout << "b:" << b << endl; cout << "c:" << c << endl; cout << "d:" << d << endl; cout << "*b:" << *b << endl; cout << "*c:" << *c << endl; cout << "*d:" << *d << endl; return 0; } /* here are the correct answers, from this code when run a:7 b:0x7ffd1ffee6c4 c:0x7ffd1ffee6e0 d:0x7ffd1ffee6e4 *b:7 *c:4 *d:1