For ease of description, all the following pointer types are int *, int **
Simple pointer example:
Int A = 10;
Int * P = & A; // The most commonly used pointer. It is a level-1 pointer and its value is the address where the memory stores variable.
Int ** pp = & P; // double pointer. Its value is the memory address of P.
-------------------------------------------------
Prerequisites:
When using pointers, all people must establish a concept in advance: pointers are a data type, which is similar to int bool Char. int
It stores integer data, char characters, and pointers in memory segments. Int Is Used for integer declaration, int * is used for pointer type declaration, and INT is used for double pointer declaration.
** The int type in the pointer refers to the memory type. Which variable the Pointer Points to is actually the memory address of the variable.
So do you think it's the same? It is very easy to understand this and everyone will be using pointers.
At present, almost all documents are explained in an independent chapter, which is an important reason for readers to misunderstand pointers.