I just want to ask a question to beginners ...
here I made some code to understand the concept / main pointer:
int a=1;
int *b=&a;
int **c = &b;
int ***d = &c;
cout << &*(&*d) << endl;
Can someone explain to me why it &*(&*d)returns the address "c" instead of the address "b"? I also tried type code &*(&*(&*(&*(&*d)))), but it saves the return address "c"
Many thanks:)
source
share