+ 6
Need of union if we have structure
Difference between union and structure
5 Réponses
+ 11
the size of a structure is the size of all the members in it, while in union it's the biggest member, so think of how that could be of benefit to the memory
+ 4
As in union its size take the size of biggest member so memory get reduced
+ 1
For reduction of memory size
0
why don’t we just use union instead if structure then?
0
Diffrence is only memory allocation