C++基础之---union联合体大小分析
union un{int a[7]; //元长度4double b; //元长度8char c[10]; //元长度1int d[3]; //元长度4};
联合体大小要满足最大元长度的整数倍。