Question

What is a 'linked list' and how does it differ from an array?

A A linked list stores elements contiguously in memory like an array, but with faster access
B A linked list is used only for sorting the elements stored in the nodes; an array is used only for searching operations
C A linked list allows only sequential access; an array allows only random access
D A linked list has fixed size; an array can grow dynamically
E A linked list is a linear data structure where elements are stored at non-contiguous memory locations, each containing data and a pointer to the next node — unlike arrays which store elements in contiguous memory with direct index-based access
Practice Next

Relevant for Exams:

Hey! Ask a query