Vidyalelo
C Programming · Q52

Structure and Union

Programming · C Programming · question 52

Q52

What will be the output of the following C code? #include union p int x; char y; k = .y = 97; int main() printf("%d ", k.y);

A.
Compile time error
B.
97
Answer
C.
a
D.
Depends on the standard

Answer: Option B

Solution

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