1
GATE CSE 2000
MCQ (Single Correct Answer)
+1
-0.3
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 considerations, is
A
22 bytes
B
14 bytes
C
18 bytes
D
10 bytes
GATE CSE Subjects
Software Engineering
Web Technologies
EXAM MAP
Medical
NEET
Graduate Aptitude Test in Engineering
GATE CSEGATE ECEGATE EEGATE MEGATE CEGATE PIGATE IN
CBSE
Class 12