#include <stdio.h> #include <strings.h> struct AType { int i; char ch; }; struct AType a; struct BType { char ch; int i; }; struct BType b; void main() { printf("sizeof(a)=%d,a=0x%x,a.i=0x%x,a.ch=0x%x/n",sizeof(a),&a,&a.i,&a.ch); printf("sizeof(b)=%d,b=0x%x,b.i=0x%x,b.ch=0x%x/n",sizeof(b),&b,&b.i,&b.ch); } sizeof(AType) 应该返回8还是返回5 ? 5 = sizeof(char)+sizeof(int) = 1 + 4; ??????