ISRO Computer Science (CSE) 2015 - Question 79

All ISRO Computer Science (CSE) papers | ISRO Computer Science (CSE) 2015

Consider the following C declaration: struct { short S[5]; union { float y; long z; } u; } t; Assume short 2 bytes, float/long 4 bytes. Memory requirement?

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

Answer: B. 14 bytes

Explanation: 5*2 + max(4,4) = 14.

| | All questions of ISRO Computer Science (CSE) 2015