0
What is the difference between List and Array ???
3 ответов
+ 1
+ 1
There are also differences in how this data structures allocates memory and how they resize it when the array/list grows.
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.