0

What is the difference between List and Array ???

26th Oct 2021, 12:56 PM
Samir
Samir - avatar
3 Answers
+ 1
There are also differences in how this data structures allocates memory and how they resize it when the array/list grows.
26th Oct 2021, 2:28 PM
Guillem Padilla
Guillem Padilla - avatar
0
An array is a homogeneous data structure in which the all the value must be of same data type. It must be all integer or all string. A list is a heterogeneous data structure which can contain values of different data types in it. It can be a integer, string, dictionary or even list itself.
26th Oct 2021, 1:15 PM
Prajwal C Patil