Home ยป Archives for December 19th, 2009
Structure Variables as Arrays
Structure Variables as Arrays:
A structure variable may also be declared as an array. This is done to manage a large number of records. Each variable of the array represents a complete record.
For example, in the following example the structure variable arts are of array type. It contains 10 elements. Each element can store one record.
struct result
{
char s_name [15];
int sub [4] ;
int total;
};
result...