1.

How To Define A Structure With Bit Field Members?

Answer»

You can define structure bit field members with Dot OPERATORS.

EXAMPLE:

#include <stdio.h&GT; INT main() { Struct bit_field { Int X.4; // it allocates only 4 bits to x Char C.6; // it allocates only 6 bits to C; }; return 0; }

You can define structure bit field members with Dot operators.

EXAMPLE:



Discussion

No Comment Found