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

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 Correct Answer flag.color = 'W';

2

Related Questions

The different variant of Date() constructor to create date object is/are ___________ i. new Date(date) ii. new Date(milliseconds) iii. new Date(date string) iv. new Date(year, month, date)