My C Quiz

The ultimate place to learn C!

Question #16: What value gets printed by the program below?

struct Foo{
        int x:1;
        int y:2;
};

struct Foo obj;

obj.x = 5;

printf("%d\n", obj.x);