+ 2
In 'C' How much memory will be reserved for this code?
union student { char name[10]; int roll_number; float percentage; }
2 Answers
+ 8
10 bytes for 10 chars because union reserve memory just for variable with largest size
union student { char name[10]; int roll_number; float percentage; }