1. Question:What are merits and demerits of array in c? 

    Answer
    Merits:
    (a) We can easily access each element of array.
    (b) Not necessity to declare too many variables.
    (c) Array elements are stored in continuous memory location.
    
    Demerits:
    (a) Wastage of memory space. We cannot change size of array at the run time.
    (b) It can store only similar type of data

    1. Report
  2. Question:Difference between arrays and linked list? 

    Answer
    Major differences between arrays and linked lists are: (i)  In array consecutive elements are stored in consecutive memory locations whereas in linked list it not so. (ii)  In array address of next element is consecutive and whereas in linked list it is specified in the address part of each node.(iii) Linked List makes better use of memory than arrays.(iv) Insertion or deletion of an element in array is difficult than insertion or deletion in linked list

    1. Report
Copyright © 2024. Powered by Intellect Software Ltd