What is the the different between structure and union in c++?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the the different between structure and union in c++??

14th May 2018, 8:31 PM
Hala Hala
Hala Hala - avatar
2 Answers
+ 12
Difference between Structure and Union in C. A structure is a user-defined data type available in C that allows to combining data items of different kinds. Structures are used to represent a record. A union is a special data type available in C that allows storing different data types in the same memory location. https://www.geeksforgeeks.org/difference-structure-union-c/ http://www.infobrother.com/Tutorial/C++/C++-Structure-and-Union
14th May 2018, 9:26 PM
Scooby
Scooby - avatar
+ 2
Thank you a lot..
14th May 2018, 9:50 PM
Hala Hala
Hala Hala - avatar