Single Choice
Not Set
QWhat will be 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.i);
return 0;
}
ID: #2676
Union in C Language
1,400 views
Question Info
#2676Q ID
Not SetDifficulty
Union in C LanguageTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
Option A
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic