Wednesday, May 23, 2012

How many levels of pointers can we have?

How many pointers (*) are allowed in a single variable?



Let's consider the following example.



int a = 10;
int *p = &a;


Similarly we can have



int **q = &p;
int ***r = &q;


and so on.



For example,



int ****************zz;




No comments:

Post a Comment