Sail E0 Webinar
Question


What will be the output of the program ?


#include<stdio.h>
int main()
{
union var
{
int a, b;
};
union var v;
v . a=10;
v . b=20;
printf("%d\n" , v . a);
return 0;
}
Options:
A .  10
B .  20
C .  30
D .  0
Answer: Option B

No answer description available for this question. 



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers