Arrays are used to store large set of data and manipulate them but the disadvantage is that all the elements stored in an array are to be of the same data type. If we need to use a collection of different data type items it is not possible using an array. When we require using a collection of different data items of different data types we can use a structure. Structure is a method of packing data of different types. A structure is a convenient method of handling a group of related data items of different data types.
Code:
structure definition:
general format:
struct tag_name
{
data type member1;
data type member2;
…
…
}
__________________
Earn money through Internet
Sales Management Training
Perth Information