Single Choice
Not Set
QWhat is the output of this C code?
#include
union utemp
{
int a;
double b;
char c;
}u;
int main()
{
u.c = 'A';
u.a = 1;
printf("%d", sizeof(u));
}
The output will be: (Assuming size of char = 1, int = 4, double = 8)
ID: #2696
Union in C Language
1,063 views
Question Info
#2696Q 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
8
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic