When you define a bitfield, you can leave some bits blank in the middle and assign members to specific bits. Why are some bits emptying in the middle?
struct product {
unsigned int code : 6; // product code : 6 bit
unsigned int : 10; // not use 10 bit
unsigned int color : 5; // product color : 5 bit
unsigned int : 5; // not use 5 bit
unsigned int size : 6; // product size : 3 bit
};
I don't know why I don't use the bit in the middle