字节对齐

来源:互联网 发布:淘宝怎么解决管控纪录 编辑:程序博客网 时间:2024/05/01 20:21

struct A{char num1;short num2;char num3;long num4;};

按照四字节对齐,一共占12字节。


原创粉丝点击