Difference between Array and Linked List.
Show Answer
- Array: An array is a collection of elements of the same data type stored in contiguous memory locations. It has a fixed size and allows random access to elements using an index.
- Linked List: A linked list is a data structure that consists of nodes where each node contains data and a reference (link) to the next node in the sequence. It does not require contiguous memory allocation and allows dynamic memory allocation.
Read more from Array vs Linked List | GeeksforGeeks