C - Structures,Unions - Discussion

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

 



Q.

What is the output of this C code?

#include
union p
{
int x;
char y;
}k = {.y = 97};
int main()
{
printf("%d\n", k.y);
}

A. Compile time error B. 97
C. a D. Depends on the standard

Answer: Option B
Explaination:

No Explanation



Discussion

Your Comments Goes here...
NameDiscussion