#include <stdio.h> void main ( void ) { int value; int *pv; int **ppv; int **ppw; value = 32; pv = &value; ppv = &pv; ppw = &pv; printf("value = %d\n", value ); printf("**ppv = %d\n", **ppv ); printf("**ppw = %d\n", **ppw ); system("pause"); }
There is no problem setting ppv
and ppw
to point
to the same thing.