#include <stdio.h>
struct
{
unsigned int flag1 : 1;
unsigned int flag2 : 1;
unsigned int count : 4;
} myBits;
int main()
{
myBits.flag1 = 1;
myBits.flag2 = 0;
myBits.count = 5;
printf("flag1 = %u, flag2 = %u, count = %u\n", myBits.flag1, myBits.flag2,
myBits.count);
return 0;
}