What are some differences between a linked list and an array?
Answer Posted / Rajendra Kumar Mishra
An array is a contiguous collection of elements, each with its own memory location indexed by a single integer. In contrast, a linked list is a linear collection of data elements, where each element points to the next one using a pointer. Arrays offer faster access times due to contiguous memory allocation but have limitations in resizing as they are fixed in size. Linked lists can be easily resized and dynamically allocated but have slower access times.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers