Ask Question

Compare and contrast a linked list and an array.

+1
Answers (1)
  1. 12 August, 22:54
    0
    Differences between arrays and linked list are as following:-

    Arrays store elements in contiguous memory location while the linked list does not store elements at contiguous memory location it connects nodes at different memory location. Array has index to directly access the elements there are no indexes in linked list to directly access the elements. Linked list contains Nodes which contains the data and the address of the next Node while the array contains only the data in the block. Traversal over the arrays is easy while the traversal over the linked list is difficult as compared to arrays.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Compare and contrast a linked list and an array. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers