1.

What will be the output of the following C code? (Assuming size of char = 1, int = 4, double = 8)#include <stdio.h> union Example { int n1; double n2; char ch; }E; int main() { E.ch = 'B'; E.n1 = 100; printf("%d", sizeof(E)); }

A. 32
B. 16
C. 8
D. 4
E. 2
Answer» D. 4


Discussion

No Comment Found

Related MCQs