以64位系统为例,每个字占64位,也就是8字节,结构体的对齐规则为: 地址%min(变量大小,8) =0eq: typedef struct{ int a; // 4字节 char c; // 1字节 short b; // 2字节 }s1; typedef struct{ char c; // 1字节 int a; // 4字节 short b; // 2字节 }s2; typedef struct{ int a; // 4字节 short b; // 2字节 char c; // 1字节 }s3; s1结构体布局为:| | | | | | | | |占用空间为8字节;int char sh...