C++

Topic: Array

What is the difference between an ARRAY and a LIST?

Answer1 Array is collection of homogeneous elements. List is collection of heterogeneous elements.  For Array memory allocated is static and continuous. For List memory allocated is dynamic and Random.  Array: User need not have to keep in track of next memory allocation. List: User has to keep in Track of next location where memory is allocated.

Browse random answers: