系统相关
首页 > 系统相关> > C语言 结构体内存对齐

C语言 结构体内存对齐

作者:互联网

结构体

typedef struct Test
{
 char a1;
 int a2;
 char a3;
 short a4;
}Test_T;

内存排布图如下

 

 

参考:

https://blog.csdn.net/zhengnianli/article/details/87390212

 

 

 

标签:typedef,struct,int,C语言,char,csdn,Test,对齐,体内
来源: https://www.cnblogs.com/sea-stream/p/11285873.html