struct stats { char top : 1; char bottom : 1; char side : 2; } MyStat;
I have seen this format
Char bit fields work in the same way as int, just the base type is 8-bit wide, not 32-bit. So you'd get a struct stats, which has the size of 1 byte, and 3 member variables, occupying a total of 4 bits.