What is bit field with example in C?

Declaring Bit FIelds Variables that are defined using a predefined width or size are called bit fields. This bit field can leave more than a single bit. The format and syntax of bit-field declaration inside a structure is something like this: struct { data – type[nameofmember]: width_of_Bit – field; };

Read more