C - Structures,Unions - Discussion

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

 



Q.

What is the output of this C code?

#include
struct
{
char *name;
union
{
char *sval;
} u;
} symtab[10];
the first character of the string sval by either of

A. *symtab[i].u.sval B. symtab[i].u.sval[0]
C. You cannot have union inside structure D. Both A & B

Answer: Option D
Explaination:

No Explanation



Discussion

Your Comments Goes here...
NameDiscussion