A

Admin • 802.91K Points
Coach

Q. Which of these uses the most memory?

Code:
union data {
int i;
float f;
char str[20];
};
  • (A) i
  • (B) f
  • (C) str
  • (D) Depends on the usage
  • Correct Answer - Option(C)
  • Views: 8
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin
Unions use the memory of the largest member. str[20] uses 20 bytes.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.