typedef struct t1{
char c1[3];
char c2[6];
}tt1;
typedef struct t2{
char c1[3];
char c2[6];
} __attribute__((aligned(4))) tt2;
C语言中结构体四字节对齐
最新推荐文章于 2024-04-27 22:05:34 发布
typedef struct t1{
char c1[3];
char c2[6];
}tt1;
typedef struct t2{
char c1[3];
char c2[6];
} __attribute__((aligned(4))) tt2;