1. What is the output of this C code? #include <stdio.h> struct p { char x : 2; int y : 2; }; int main() { struct p p; p.x = 2; p.y = 1; p.x = p.x & p.y; printf(”%dn”, p.x); } a) 0 b) Compile time error c) Undefined behaviour d) Depends on…
1. What is the output of this C code? #include <stdio.h> struct p { char x : 2; int y : 2; }; int main() { struct p p; p.x = 2; p.y = 1; p.x = p.x & p.y; printf(”%dn”, p.x); } a) 0 b) Compile time error c) Undefined behaviour d) Depends on…