Domanda di colloquio di Wipro

What is the difference between array and linked list?

Risposta di colloquio

Anonimo

19 feb 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.