Wipro interview question

What is the difference between array and linked list?

Interview Answer

Anonymous

Feb 19, 2022

An array is a collection of elements of similar data type & a linked list is a collection of objects known as a node where node consists of two parts( data node & address node ). The key difference is that array elements stores in a contiguous memory location whereas linked list elements can be stored anywhere in the memory or randomly stored.