Question
#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;
}
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;
}
Answer: Option B
Was this answer helpful ?
No answer description available for this question.
Was this answer helpful ?
More Questions on This Topic :
Question 7.
How will you free the allocated memory ?
....
Submit Solution