Structure Variables

A structure is a variable that holds a collection of other variables. Each variable in a structure is called an element. An element can be of any data type.

You can create a nested structure by adding another structure or an array as an element.

Variable

Think of a structure as a group of boxes with an element associated with each box.

In the following diagram, the structure variable DATA contains 3 elements. Variable values are stored in each of the 3 boxes.