接上一篇:C语言内存对齐详解(2)
在minix的stdarg.h文件中,定义了如下一个宏:
/* Amount of space required in an argument list for an arg of type TYPE.
* TYPE may alternatively be an expression whos...
struct A
{
int a;
char b;
short c;
};
struct B
{
char a;
int b;
short c;
};
#pragma pack(2)
struct C
{
char a;
int b;
short c;
};
#pragma pack(1)
struct D
{
...