C - Structures,Unions - Discussion

You Are Here :: Home > C > Structures,Unions - Discussion

 



Q.

What will be the output of the program ?

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

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

Answer: Option B
Explaination:

No Explanation



Discussion

Your Comments Goes here...
NameDiscussion