πŸ“Š C Programming
Q. Which is true about union in C?
  • (A) All members share the same memory location
  • (B) It is same as struct
  • (C) Each member gets its own memory
  • (D) Union can't store integers
πŸ’¬ Discuss
βœ… Correct Answer: (A) All members share the same memory location

Explanation: Union shares memory space between all members, unlike struct.

Explanation by: Mr. Dubey
Union shares memory space between all members, unlike struct.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
56
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate