摘要: 数据结构中包含的虚拟字段(零长数组)不占字节空间,但是会影响字节对齐,即影响结构体的大小,如 1 typedef struct 2 { 3 short x; 4 short y; 5 short z; 6 }ST1; 7 ​ 8 typedef struct 9 { 10 short x; 11 s 阅读全文
posted @ 2022-03-21 22:44 云的边界 阅读(114) 评论(0) 推荐(0)