C语言struct中冒号用法 typedefstruct{unsignedcharunused_bits:4;unsignedcharwchair_state:2;}xyz;typedefstruct{unsignedcharunused_bits;unsignedcharwchair_state;}abc;上面的xyz和abc有什么区别?Xyz占了1 Byte,abc占了2 byte。冒号后表示位域,即该变... 2023-06-13 C语言struct冒号文章基础课C语言基础