Vidyalelo
C Programming · Q183

Structure and Union

Programming · C Programming · question 183

Q183

What will be the output of the following C code (Assuming size of int and float is 4)? #include union int ival; float fval; u; void main() printf("%d", sizeof(u));

A.
16
B.
8
C.
4
Answer
D.
32

Answer: Option C

Solution

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