结构体 结构体是一个自定义的复合数据类型 例如:struct data_t; 一个代表人类的结构体,包含一下属性 struct data_t{ int height; int weight; int age; char name[20]; char sex; }data; 二分一对齐 联合体 只需把struct 改为union。 typedef union data{ }data_t; 联合体是共享内存。