What are the differences between structures and union?
Short Answer
Views 706
Answer:
A structure variable contains each of the named members, and its size is large enough to hold all the members. Structure elements are of the same size.
A union contains one of the named members at a given time and is large enough to hold the largest member. Union element can be of different sizes.
A union contains one of the named members at a given time and is large enough to hold the largest member. Union element can be of different sizes.
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of C Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.