C语言--__attribute__((packed))
packed的作用是取消字节对齐#include<stdio.h>typedef struct { int i; //4 char a; //1 char b; //1 char c; //1 //1}Test1;typedef struct { int i; //4 char a; /...