Skip to content

结构体内存对齐

struct t1
{
    char c1;
    short s1;
    short s2;
    int i;
    char c2;
    char c3;
};
sizeof(struct t1) = 16bit