Colons after variable name in C [duplicate]
问题 This question already has answers here : Closed 9 years ago . Possible Duplicate: What does a colon in a struct declaration mean, such as :1, :7, :16, or :32? This is C code sample of a reference page. signed int _exponent:8; What's the meaning of the colon before '8' and '8' itself? 回答1: It's a bitfield. It's only valid in a struct definition, and it means that the system will only use 8 bits for your integer. 回答2: It's a bitfield, an obscure and misguided feature of structures. That should