Q. Which of these uses the most memory?
Code:
union data {
int i;
float f;
char str[20];
};
β
Correct Answer: (C)
str
Explanation: Unions use the memory of the largest member. str[20] uses 20 bytes.