PROGRAMMING AND PROBLEM SOLVING THROUGH ‘C’ LANGUAGE

1.2 Consider the following variable declaration
Union x{
int i;
float f;
char c;
}y;

if the size of i, f and c are 2 bytes, 4 bytes and 1 byte respectively then the size of the
variable y is:-
A) 1 byte
B) 2 bytes
C) 4 bytes
D) 7 bytes


Comments (1)

Leave a Reply