0x01
A pointer variable acts as a function parameter by transferring the address of one variable to another function.
0x02
Simple example: Although the function can be realized, but the meaning is different.
The correct wording:
1#include <stdio.h>2 3 voidShuchu (int*p)4 {5printf"%d\n", *p);6 }7 8 intMain ()9 {Ten intA; One int*PA; Ascanf"%d", &a); -PA = &A; -Shuchu (PA);//PA is Address the}
A deceptive notation:
1#include <stdio.h>2 3 voidShuchu (int*p)4 {5printf"%d\n", *p);6 }7 8 intMain ()9 {Ten intA; One int*PA; Ascanf"%d", &a); -PA = &A; - //Shuchu (*PA); the}
Note the 14th line, is a deceptive way of writing, although the use of pointers, but the same as useless, because only the assignment, and then still use the original value;
In general, it is important to emphasize that pointers are used as function parameters to pass the address of a variable to a parameter instead of passing the original value.
C language pointer variable as function parameter