Would anyone know how to extract the size of a bit-field member. The below code naturally gives me the size of an integer, but how do I find out how many bits or b
Because of padding it is not possible to see number of bits in a bit field using sizeof operator.
The only way is to open up the header where the structure is defined, and look it up.