关于:#pragma pack(1)
#pragma pack(1)
struct stooges{
UCHAR larry;
UINT moe[20];
} arbitrary_structure;
#pragma pack()
MSDN:When you use #pragma pack(n), where n is 1, 2, 4, 8, or 16, each structure member after the first is stored on the smaller member type or n-byte boundaries. If you use #pragma pack without an argument, structure members are packed to the value specified by /Zp. The default /Zp packing size is /Zp8.
请指教:pack(1)到底是什么意思,有何用途。