PROGRAMMING AND PROBLEM SOLVING THROUGH ‘C’ LANGUAGE

1.8. Consider the following declarations.
union id {
char color;
int size;
}
struct {
char country;
int date;
union id i;
} flag;
To assign a color to a flag, the correct statement would be
A) flag.color = ‘W’;
B) flag.i.color = ‘W’;
C) flag.color = ‘White’;
D) flag.i.color = ‘White’;



Leave a Reply