Question
#include<stdio.h>
int main()
{
union a
{
int i;
char ch[2];
};
union a u;
u.ch[0] = 3;
u.ch[1] = 2;
printf("%d, %d, %d\n",u.ch[0], u.ch[1], u.1);
return 0;
}
What is the output of the program?
#include<stdio.h>
int main()
{
union a
{
int i;
char ch[2];
};
union a u;
u.ch[0] = 3;
u.ch[1] = 2;
printf("%d, %d, %d\n",u.ch[0], u.ch[1], u.1);
return 0;
}
More Questions on This Topic :
Question 10.
When we mention the prototype of a function?
....
Submit Solution