हिंदी

Write any two distinguishing points between a Record and Linear Array. - Computer Science 1

Advertisements
Advertisements

प्रश्न

Write any two distinguishing points between a Record and Linear Array.

How does Record differ from Linear Array?

अंतर स्पष्ट करें
Advertisements

उत्तर

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×