当前位置: 技术问答>linux和unix
问字节对齐的问题
来源: 互联网 发布时间:2015-07-28
本文导语: struct test1 { char a; int b; char c; }; int main(int i) { char a;short b;char c; struct test1 t1; cout
struct test1
{
char a;
int b;
char c;
};
int main(int i)
{
char a;short b;char c;
struct test1 t1;
cout
{
char a;
int b;
char c;
};
int main(int i)
{
char a;short b;char c;
struct test1 t1;
cout