+3 votes
in Class 11 by kratos

How is Structure different from an Array?

1 Answer

+4 votes
by kratos
 
Best answer

An array is a collection of homogenous data members (eg) int a[10]; contains 10 integers indexed from 0 to 9.

The structure is a collection of heterogeneous data members.

(eg) struct student

{

int rollno;

char name [20];

};

...