Level 2 pointer and multi-level pointer, level 2 pointer multi-level pointer
# Include <iostream> int main (int argc, char ** argv) {int I = 0; int * p = & I; int ** pp = & p; ** pp = 100; printf ("% d \ n", I); printf ("I address value: % p \ n", & I ); printf ("p value: % p \ n", p); printf ("p address value: % p \ n", & p ); printf ("pp value: % p \ n", pp); printf ("pp address value: % p \ n", & pp ); printf ("* pp value: % p \ n", * pp); printf ("** pp value: % d \ n", ** pp ); // similarly, a multi-level pointer is a pointer higher than a second-level pointer. It will actually be used less in the future, because the logic will be very confusing // The problem should be considered comprehensively, but it should be implemented in the simplest way as much as possible. // The subsequent steps are basically conceptual. Int *** ppp = & pp; printf ("ppp value: % p \ n", * ppp); return 0 ;}
:
Multilevel pointer: