Saved Bookmarks
| 1. |
How is Structure different from an Array? |
|
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]; }; |
|