Comment Re:Still... (Score 1) 193
E.g., would you rather try to see which bit is set in a string like "0b001011010011011101011100" or have it broken up like "0b0010_1101_0011_0111_0101_1100" or "0b00101101_00110111_01011100". If it's a bit field, you may even want "0b001011_010011011_01_0_111_0_0" if breaking it into fields has meaning.
Such a small change to help readability...
If you're really interested in readability you would probably define those bits, like:
#define HIGHSTUFF (0b001011 << 17)
#define NOTSOHIGHSTUFF (0b010011011 << 8)
and then or them together.
Alternatively you could define a macro for your bit field, like:
#include
#define bitfield(a,b,c,d) 0x##a##b##c##d
int main() {
printf("%x", bitfield(f,f,f,f));
}