Consider the following union variable declaration in 'C' language:
union data {

int a;

float b;

char string[20];

} data1;

If char, int, and float variables are allocated 1, 2, and 4 bytes of memory space respectively, then what will be the memory size of the union variable data1?

1
20 bytes
2
2 bytes
3
4 bytes
4
1 byte

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation