Q109
What will be the output of the following C code? #include union u struct unsigned char x : 2; unsigned int y : 2; p; int x; ; int main() union u u.p = 2; printf("%d ", u.p.x);
A.
Compile time error
AnswerB.
2
C.
Undefined behaviour
D.
None of the mentioned
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board