the differences between structures and unions.

i) The amount of memory required to store a structure variable is the sum of all members. On the other hand, in the case of unions, the amount of memory required is always equal to that required by its largest member.

ii) Only one member of a union can be accessed at any given time, whereas this is not the case with structures.

No comments:

Post a Comment