Page 1 of 1

What will be the output of the following C code (Assuming size of int and float is 4)?

Posted: Wed Jul 13, 2022 7:54 pm
by answerhappygod
#include <stdio.h> union { int ival; float fval; } u; void main() { printf("%d", sizeof(u)); }
a) 16
b) 8
c) 4
d) 32