Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What does C language pointer **p mean?
What does C language pointer **p mean?
**p means p also means address. Simply put, the number stored in the storage unit corresponding to this address is also an address, not a numerical value, and the data stored in the storage unit corresponding to this storage address is the real corresponding type of numerical value!

For example:?

int I = 10; //Define an integer variable?

Int * p = & //Define a pointer to this variable?

int * * p 1 = & amp; p; //Define a secondary pointer to the p pointer?

So the value of 10 is:?

printf("i=[%d]\n ",* p); ?

printf(" I =[% d]\ n " ,* * p 1);

Extended data:

Pointer-array relation

Pointer array: an array of pointers, all elements of which are pointers, pointing to a memory address. char * p[ 10]; //p is an array of pointers.

Array pointer: The array name itself is a pointer to the first address of the array. Please note that this is a constant.

Example:

Char (*p)[ 10]//p is an array pointer.

Function pointer: a pointer to the function entry address itself, through which the pointed function can be called, and a callback function can be realized by using the function pointer.

Baidu encyclopedia-pointer