8+4+2=14然後用4個字節對齊到16;
如果結構是結構AAA
{
char a;
char b【4】;
short int g;
int c;
};
是12;
類似地,對於結構BBB是
1+4然後用4個字節對齊到8+16+2=26,然後用4個字節對齊到28。