explanation

guys can someone explain to me whats this and what does it do ?

int x=10;
int *pointer = &x;

cout << &*&*pPointer << endl; <=== ??????????????

i know what this {&pointer} and {*pointer} means , just have no idea what {&*&*} means

it couts == CCCCCCCC

ty in ad
Since (*x) means "get the value at address x" and (&x) means "get the address of value x", (&*x) is equivalent to (x). Therefore (&*&*x) is equivalent to (x). Therefore the statement simply prints the value of pPointer:
1
2
cout << &*&*pPointer << endl;
cout << pPointer << endl;
ty for helping ; )
Topic archived. No new replies allowed.