C++ pointer, Beginner Question...
- by BobAlmond
Hi there, just want to ask a beginner question...
here, I made some code, for understanding the concept/basic of pointer:
int a=1;
int *b=&a;
int **c = &b;
int ***d = &c;
cout << &*(&*d) << endl;
can someone explain to me, why the &*(&d) return address of "c" instead of address of "b"?
I've also tried code like &(&(&(&*(&*d)))), but it keep return address of "c"
Thanks a lot :)