What will be the output of the following program on GCC compiler ?<

Loading

โœช Choose the correct option.

What will be the output of the following program on GCC compiler ?

#include  
int main() {
union var {
int a, b;
};
union var v;
v.a=10;
v.b=20;
printf("%d ", v.a);
return 0;
}

A. 0
B. 10
C. 20
D. 30

Leave a Comment