1.

What will be the output of the following C code?#include <stdio.h> union Un { struct { unsigned char ch : 2; unsigned int n : 2; }s; int ch; }; int main() { union Un u = {2}; printf("%d n", u.s.ch); }

A. Compilation Error
B. 0
C. 2
D. Nothing
E. None of these
Answer» D. Nothing


Discussion

No Comment Found

Related MCQs