[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: Structures, Unions, Enums - Discussion

Home > C Programming > Structures, Unions, Enums > MCQs Questions Discussion

35 / 43

Choose the correct option.

Consider the following declarations.

union id {
char color;
int size;
}
struct {
char country;
int date;
union id;
} flag;

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

Aflag.color= 'W';

Bflag.id.color= 'W';

Cflag.color = 'White';

Dflage.id.color = 'White';

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

No Discussion on this question yet!