If you have a line of code like
int num = 4;
Does this work in the following tables?
VARIABLE|ADDRESS ADDRESS|VALUE
num |0001 0001 |4
If you would then say
int* num_p = #
Will this be the result of the following tables?
VARIABLE|ADDRESS ADDRESS|VALUE
num |0001 0001 |4
num_p |0002 0002 |0001
Then he will say
int** num_pp = &num_p;
Result in the following tables?
VARIABLE|ADDRESS ADDRESS|VALUE
num |0001 0001 |4
num_p |0002 0002 |0001
num_pp |0003 0003 |0002
Etc? If so, will the same logic be executed if the initial variable was not int, but instead struct?
EDIT: view comments on this issue for more information on how to look like the address, rather than the scheme 0001, 0002, 0003.
EDIT 2: This answer to this question indicates that the variables do not have to have an address. This answer to an earlier question also goes into this.
source