Social Sciences, asked by snktka4431, 1 year ago

Difference between union and structure in c++

Answers

Answered by siddhartharao77
3
1. With a union, all members share the same memory.
With a struct, they do not share memory.

2. Size of the struct is double than that of union
Answered by CHILAKAMARRI
3
1. With a union, all members share the same memory. 
With a struct, they do not share memory.

2. Size of the struct is double than that of union

CHILAKAMARRI: CAN YOU MARK AS BARINLEST ANSWER
Similar questions