Structure

C++ Introduction of Structure

A structure is a collection of simple variables.The variable in a structure can be of different types.
The data items in structure are call as ‘members’ of structure. An understanding of a structure is very essential since it forms the building block for understanding ‘classes and objects’.

Example:-

OUTPUT:-