Bit fields

Bit fields

Declares a member with explicit width, in bits. Adjacent bit field members may be packed to share and straddle the individual bytes.

A bit field declaration is a struct or union member declaration which uses the following declarator:

identifier(optional) : width
identifier - the name of the bit field that is being declared. The name is optional: namel