C - Structures,Unions - Discussion

You Are Here :: Home > C > Structures,Unions - Discussion

 



Q.

Comment on the following union declaration?

#include
union temp
{
int a;
float b;
char c;
};
union temp s = {1,2.5,'A'}; //REF LINE
Which member of the union will be active after REF LINE?

A. a B. b
C. c D. Such declaration are illegal

Answer: Option A
Explaination:

No Explanation



Discussion

Your Comments Goes here...
NameDiscussion