Ask Question
30 January, 02:59

Compare and contrast a linked list and an array.

+3
Answers (1)
  1. 30 January, 03:08
    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?
Get an answer to your question ✅ “Compare and contrast a linked list and an array. ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers