Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Can pointers to integer variables be assigned to integer variables in C language?
Can pointers to integer variables be assigned to integer variables in C language?
*p 1 This is not a pointer. . . But the value pointed by the pointer, temp=*p 1, means that assigning the value pointed by the pointer to a temporary variable is of the same type;

The value of the pointer variable is a pointer, and the pointer is an address; The pointer variable points to a specific variable instead of an address.

Such as int * ptr

Ptr is a pointer, that is, ptr is actually an address, *ptr is the value of a pointer variable, and the pointer type is int *