struct A
{
int a;
float b;
};//8
由于int四个字节,float四个字节,所以八个字节
struct B
{
char a;//1+3
int b;//4
};//8
char一个字节,int四个字节,
struct C
{
char a;//1+1
short b;//2
int c;//4
};//8
struct D
{
char a;//1+3
int b;//4
short c;//2
};//10+2
struct E
{
char a;//1+3
float b;//4
int c;//4+4
double d;//8
};
struct F
{
int a;//4
char b;//1
};//5+3
struct G
{
char a;
int b;
};
struct H
{
char a;//1+3
int b;//4
double c;//8
int *d;//4
};//20+4
struct II
{
int a;
char b;
};
struct I
{
float x;//4
//struct II y;//8
double y;
};//12 单个最大类型