1.

What will be the output of the following C code?#include <stdio.h> union { int n; char ch; }U; int main() { U.n = 10; printf("%d n", sizeof(U)); }

A. sizeof(int)
B. Depends on the compiler
C. sizeof(int) + sizeof(char)
D. Compilation Error
E. None of these
Answer» B. Depends on the compiler


Discussion

No Comment Found

Related MCQs