define array of structuresan array of structures


Define Array of Structures?

An Array of Structures is an assortment of the same data types which are declared as structures. It is useful to store large and different number of structure variables. To declare array of structures you should first define a Structure and after that declare an array variable of that type.

In an array of structures each and every one of the elements of the array are stored in adjacent memory locations. The elements of the array are in structures and ever since all structure elements are stored in adjacent memory locations it's easy to understand its arrangement in memory. For instance in memory c[0] 's id, name would be without delay followed by c[1] 's id and name and so on.

Structure is a collection of unlike data types while array is a collection of similar data types. Then the array of structure signifies an array of alike data types which themselves are a collection of dissimilar data types. 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: define array of structuresan array of structures
Reference No:- TGS0305125

Expected delivery within 24 Hours