Consider the following C declaration
struct { short s [5] union { float y; long z; }u; } t; 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(a) 22 bytes(b) 14 bytes(c) 18 bytes(d) 10 bytes
|
No comments:
Post a Comment