#include <stdio.h>
struct temp3 {
char a1;
int a2;
} C;
int main()
{
printf ("%d\n", sizeof(C));
return 0;
}
#pragma pack(1)
struct temp3 {
char a1;
int a2;
}C;
#pragma pack()
struct temp3 {
char a1;
int a2;
}__attribute__ ((packed)) C;
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |