-
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];
-
- tab[i].u.Str[0].
- *symtab[i].u.Str
- Both tab[i].u.Str[0]. & *tab[i].u.Str
- You cannot have union inside structure
- None of these
Correct Option: C
Both tab[i].u.Str[0]. & *tab[i].u.Str