Advertisements
Advertisements
Questions
Write any two distinguishing points between a Record and Linear Array.
How does Record differ from Linear Array?
Distinguish Between
Advertisements
Solution
| Sr. No. | Record | Linear Array |
| 1. | A record is a collection of related fields. | An array is a collection of homogeneous data elements. |
| 2. | A record can store different types of data in its fields. | An array stores elements of only one data type. |
| 3. | Elements in a record do not have a natural order. | Elements in an array are naturally ordered. |
| 4. | Record elements are accessed using level numbers or field names. | Array elements are accessed using an index with consecutive numbers. |
shaalaa.com
Is there an error in this question or solution?
2021-2022 (March) Set 1
