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 

+ Report
Total Preview: 2658
Difference between arrays and linked list?
Copyright © 2024. Powered by Intellect Software Ltd