typedef and define

typedef is used to rename data types.
typedef int * B; //Use B instead of int *;
typedef struct lcd_operation C; //Use C instead of struct lcd_operation this structure
typedef struct lcd_operation * D; //Use D instead of struct lcd_operation *this structure pointer
typedef int (*add_type) (int,int); //Use add_type to define a function pointer.

Insert image description here
Insert image description here

Guess you like

Origin blog.csdn.net/qq_35318223/article/details/131758932