输出结果:
Size of A: 16 bytes.
Size of B: 12 bytes.
Size of C: 10 bytes.
原则:一般情况下,long word与下一个long word相邻,C中的pragma指令告诉编译器调整内存对齐格式
输出结果:
Size of A: 16 bytes.
Size of B: 12 bytes.
Size of C: 10 bytes.
原则:一般情况下,long word与下一个long word相邻,C中的pragma指令告诉编译器调整内存对齐格式