+ 1
what is the different between stucts nd union
6 Réponses
+ 1
Members of structure can be accessed individually.. where in union only one at a time
structure members do not share their memory.where union members shares.
+ 1
also the size of the structure is sum of each member size. n in union it equivalent to the member having largest value
0
do u mean struct?
0
ya
0
Thank you #Swara Gadre#
0
Structs are like boxes which can store several objects whereas unions are boxes which are big enough to store any of the items the are defined for but they can only store an item at once