6. Nested pointer #

Created Tuesday 24 December 2019

Q) Why don’t we use pointer instead of int*, char* etc. Answer: We use int* and char* etc to indicate the jump(or read span) which must be read form the address specified. Relate this to the jump field in the symbol table.

Double pointer: When we do this

int i = 10; int* p = &i;

This takes place:


Can we use another variable to store the address of the int* p pointer. Yes we can.

**This is obvious, but worth mentioning: ** cout << *p2 << endl; cout << p << endl; The output is the same on both lines. We just accessed on the same *level*.


Clearing the thought smoke regarding double or n pointer chains.