1

What is the difference between an array and a list?

Vishalini.R Answered question June 28, 2023
User Avatar

Arrays

Lists

Array are contiguous memory locations of homogenous data types stored in a fixed location or size. Lists are classic individual elements that are linked or connected to each other with the help of pointers and do not have a fixed size.
Arrays are static in nature. Lists are dynamic in nature
Uses less memory than linked lists. Uses more memory as it has to store the value and the pointer memory location