1.

In the following C code, we can access the 1st character of the string sval by using _______.
#include <stdio.h>
struct
{
char *Name;
union
{
char *Str;
} u;
} tab[15];

A. tab[i].u.Str[0].
B. *symtab[i].u.Str
C. Both tab[i].u.Str[0]. & *tab[i].u.Str
D. You cannot have union inside structure
E. None of these
Answer» D. You cannot have union inside structure


Discussion

No Comment Found

Related MCQs