What is the difference between the C language pointer p and *p?
In the C language, the pointer ‘p’ represents a variable that points to a specific type of data, and ‘*p’ represents accessing the data pointed to by the pointer ‘p’.
Specifically, the pointer p stores the memory address of a data object, and the data content at that address can be accessed through *p. Pointer p itself is a variable that stores an address value and can be assigned, compared, and manipulated.
The operator P is a dereference operator that can be used to access the data pointed to by the pointer P. By using P, you can obtain the data value stored at that address. With the type of pointer P determined, you can get the correct data value type by using *P.
In summary, the pointer p is used to store the address of specific data types, while *p is used to access the data stored at that address.