Vidyalelo
C Programming · Q89

Structure and Union

Programming · C Programming · question 89

Q89

What will be the output of the following C code? #include union stu int ival; float fval; ; void main() union stu r; r.ival = 5; printf("%d", r.ival);

A.
9
B.
Compile time error
C.
16
D.
5
Answer

Answer: Option D

Solution

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