struct A { int a; char b; short c; }; struct B { char b; int a; short c; }; #pragma pack(2) struct C { char b; int a; short c; }; #pragma pack( )