I would like to define structure which will contain eight flags. Is it possible to use byte type instead of 8 boolean fields in it? I would like to have something like this
struct mystruct
{
byte first:1;
byte second:1;
...
}
I want binary representation to give me flags value.
And what if I have some values which should take more than 1 bit, e. g. 2 or 4