struct xxx { char a, //1字节 int b, //4字节 char c //1字节 }
#include <stdio.h> struct xxx { char a; int b; char c; }; void main() { printf("%d\n",sizeof(xxx)); } //运行结果12
69,368
社区成员
243,081
社区内容
加载中
试试用AI创作助手写篇文章吧