Top

Discussion

Consider the following C declaration

struct (
short s[5];
union {
float y;
long z;
}u;
}t;

Assume that the 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 consideration, is

  • A.22 bytes
  • B.18 bytes
  • C.14 bytes
  • D.10 bytes

Answer: B

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment