R
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;
short s[5];
union {
float y;
long z;
}u;
} t;
- Correct Answer - Option(C)
- Views: 144
- Filed under category C Programming
Discusssion
Login to discuss.