What are the differences between structures and union?
C Programming Language > Union in C Language > Union in C
851
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.
This Particular section is dedicated to Question & Answer only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.