Vidyalelo
C Programming · Q149

Structure and Union

Programming · C Programming · question 149

Q149

What will be the output of the following C code? #include struct p unsigned int x : 7; unsigned int y : 2; ; int main() struct p p; p.x = 110; p.y = 2; printf("%d ", p.x);

A.
Compile time error
B.
110
Answer
C.
Depends on the standard
D.
None of the mentioned

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board