Z
Zero
Hi everybody!
Is it possible to write a value into a bit field which initializes all
bits?
example:
struct Field
{
unsigned int Bit1 : 1;
unsigned int Bit2 : 2;
} MyFied;
Now, I would like to write the value 3 to the variable MyField,
so that Bit1 and Bit2 become TRUE ( == 1).
Any suggestion?
Thanks!
Is it possible to write a value into a bit field which initializes all
bits?
example:
struct Field
{
unsigned int Bit1 : 1;
unsigned int Bit2 : 2;
} MyFied;
Now, I would like to write the value 3 to the variable MyField,
so that Bit1 and Bit2 become TRUE ( == 1).
Any suggestion?
Thanks!