What is the output of this program?
#include
int main()
{
union demo {
int x;
int y;
};
union demo a = 100;
printf("%d %d",a.x,a.y);
}
Answer: D
You cannot initialize an union variable like this.