Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - int a = 2; int * p = & ampa; * p = a; Is the * sign an overloaded operator? Is a pointer a declarator when it is declared and an accessor when it is not declared? Thank you.
int a = 2; int * p = & ampa; * p = a; Is the * sign an overloaded operator? Is a pointer a declarator when it is declared and an accessor when it is not declared? Thank you.
* declare in the declaration that this variable is a pointer variable such as int * pp.

This is the definition that this pointer points to an integer variable.

It is not a declaration, but a value operator.

int a = 3 * p = & ampa;

printf("%d ",* p); At this time, the * sign is the value pointed by the value operator pointer p. . .

In addition, the * symbol can also be used to get the values of elements in an array. .