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

πŸ‘οΈ
77
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate