Ques 1 Union
Which of the following is a keyword of union ?
Ques 2 Union
What is the size of Union?
union student
{
char name[12];
int roll[5];
float percentage;
}
Ques 3 Union
What is the output of the code ?
union things{
int a;
float b;
char c;
};
int main()
{
union things d;
d.a=45;
d.b=3.5;
d.c="Grocery";
printf("%d\n",d.a);
printf("%f\n",d.b);
printf("%c\n",d.c);
return 0;
}