A structure (struct) in C allows the packaging of related attributes and properties into larger container types. This concept is very important because it is the foundation of structured programming. Structured programming, in return, is the foundation of object-oriented programming.
A simple structure may look like the following:
In this case, X is the name of the structure. To make variables of this structure, we can use the following declaration: