© Slobodan Dmitrović 2021S. DmitrovićModern C for Absolute Beginnershttps://doi.org/10.1007/978-1-4842-6643-4_15
A structure is a type that has members. These members can be variables of other types.
The structure declaration
is of the following syntax:
A structure is also a type. The name of this type
is the name of the structure. A structure is a collection of variables, an excellent way to group the variables and organize data.
Let us write a simple example that declares a structure with three members: