好吧! 那我就开始了.. 一个题一个题的来啊.. 我说一个. 你们回答一个.
one: 关于字节对齐
struct abc
{
short a;
char b;
int c;
double d;
};
sizeof(struct abc) = ?
union test
{
int a;
char b[15];
short c;
long d;
}Test;
struct demo
{
char a;
int b;
short c;
union test d;
};
sizeof(struct demo)=?