...
Structs and Unions
Let's learn about structs and unions in this lesson.
A Structure in C++ is a group of data elements grouped together under one name. These data elements, known as members, can be of different types and sizes. It is a user-defined data type that allows us to combine data items of different kinds.
Struct