tianqixin 429***967@qq.com 参考地址
#include <stdio.h>typedef struct{ unsigned char a; unsigned int b; unsigned char c;} debug_size1_t;typedef struct{ unsigned char a; unsigned char b; unsigned int c;} debug_size2_t;int main(void){ printf("debug_size1_t size=%lu,debug_size2_t size=%lu
", sizeof(debug_size1_t), sizeof(debug_size2_t)); return 0;}
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
结构体占用存储空间是多少,
一周热门 更多>