C Programming :: Structures, Unions, Enums - Discussion
Home > C Programming > Structures, Unions, Enums > MCQs Questions Discussion
39 / 43
What is the output of the following 'C' program ?
#include <stdio.h>
union {
int no;
char ch;
} u;
int main()
{
u.ch = '2';
u.no = 0;
printf ("%d", u.ch);
return 0;
}
#include <stdio.h>
union {
int no;
char ch;
} u;
int main()
{
u.ch = '2';
u.no = 0;
printf ("%d", u.ch);
return 0;
}
A0
B2
CError
Dblank
ENone of these
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!