3 ms·
You shouldn't use binary everywhere, just like you shouldn't just hex everywhere. Binary literals make sense for bit data. For example, coding an icon for a gam
by Someone 13y ago
You shouldn't use binary everywhere, just like you shouldn't just hex everywhere. Binary literals make sense for bit data. For example, coding an icon for a game:
char unsigned bottomLeftCorner[8] =
{
0b11000000,
0b11000000,
0b11000000,
0b11000000,
0b11000000,
0b11000000,
0b11111111,
0b11111111
};
They may, at times, also make sense when coding some low-level protocol.