Levels of Indirection
int x; /* int value */
int *p; /* pointer to int */
int **pp; /* pointer to pointer to int */
x = 5;
p = &x;
pp = &p;
5
Address 8 12 16
8
12
x p pp
Previous slide
Next slide
Back to first slide
View graphic version