Ask Question
16 April, 00:25

Compare and contrast a linked list and an array.

+1
Answers (1)
  1. 16 April, 03:59
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers