Linear Array & Record difference - Data Structure

Q.  What is the difference between Linear Array and a Record?
- Published on 26 Aug 15

a. An array is suitable for homogeneous data but the data items in a record may have different data type.
b. In a record, there may not be a natural ordering in opposed to linear array.
c. A record form a hierarchical structure but a linear array does not
d. All of above

ANSWER: All of above
 

    Discussion

  • Vishal sarkate   -Posted on 04 Feb 19
    Mcq on linear array
  • Nirja Shah   -Posted on 21 Nov 15
    The difference between Linear Array and a Record are as follows:
    - An array is suitable for homogeneous data but the data items in a record may have different data type. You cannot store different type of data in array as integer, float, double, etc.
    - In a record, there may not be a natural ordering in opposed to linear array. In array, ordering always start from index.
    - A record form a hierarchical structure but a linear array does not. As an example a record may be parent child relationship, so it will create hierarchical structure.
    The operation of processing each element in the list is known as traversing the link list.

➨ Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
▲