What is the size of the union (assume int is 4 bytes)? union U {
What is the size of the union (assume int is 4 bytes)?
union U {
int i;
char c[8];
};
Show answerHide answer
Correct answer: (B) 8 bytes
Explanation
A union's size equals its largest member (8).