1.

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

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


Discussion

No Comment Found

Related MCQs