Examveda

Consider the following declarations:
union id
{
   char color;
   int size;
};
struct{
   char country;
   int date;
   union id id;
}flag;

To assign a color to a flag, the correct statement would be

A. flag.color = 'W';

B. flag.id.color = 'W';

C. flag.color = 'WHITE';

D. flag.id.color = 'WHITE';

E. color.flag = 'W';

Answer: Option A

Solution (By Examveda Team)

2


This Question Belongs to C Program >> Structure And Union

Join The Discussion

Related Questions on Structure and Union