1 #pragma pack(push, 2) 2 struct Packed { 3 char a; 4 short b; 5 char c; 6 int d; 7 }; 8 #pragma pack(pop) 9