Array :
1. Array is a collection of homogenous data ( same type of data).
2. Array data are accessed using index .
3. Array allocates static memory.
4. Array elements access takes less time than Structure .
Structure :
1. Structure is a collection of heterogenous data (different types of data).
2. Structure elements are access using dot .
3. Structure allocates dynamic memory.
4. Structure elements access takes more time than Array.

0 Comments