Q. Assume that objects of the type short, float and long occupy 2 bytes, 4 bytes and 8 bytes, respectively. The memory requirement for variable t, ignoring alignment considerations, is
Code:struct {
short s[5];
union {
float y;
long z;
}u;
} t;
β
Correct Answer: (C)
18 bytes