Structures

A Structure is a collection of simple variables. The variables of a structure can be of different types: int, float and so on. (this is unlike the array, in which all the elements must be of the same type.) the data items or varible declared in the structure are called the members of the structure. The structure name is often reffered to as its tag.
For C++ programmers, structures are one of the two important building blocks in the understanding of objects and classes.
Defining a Structure
We know that structure is a collection of logically related variables referenced under a single name. These variables can be of different type, and each has a name which is used to select it from the structure.
A structure can be defined as a new named type, thus extending the number of avaialble types. LEARN MORE>>

No comments: