Saturday, May 10, 2008

Arrays of structures

Arrays of structures



The most common use of structures is in arrays of structures.
To declare an array of structures, first the structure is
defined then an array variable of that structure is declared.

E.g.: struct class student [100];

It defines an array called student which consists of 100
elements of structure named class.

Ans is stored inside the memory in the same way as a multidimensional
array example program.

To implements on array of structures
.




0 comments:

Copyright

Copyright © 2008 C Tutorial, All rights are reserved