Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - C language small questions
C language small questions
Difference: One is a pointer to a structure variable, and the other is a pointer to an integer variable.

Details are as follows:

Struct student *p Pointer to Structure variable: struct structure name * structure pointer variable name.

Running results:

Int *p becomes a pointer to an integer variable:

Compile and run:

Error: Variable types are different. P does not belong to integer variable class pointer.