Example & Tutorial understanding programming in easy ways.

What is difference between an array and the list in C++ ?

-An Array is a collection of homogeneous elements while a list is a collection of heterogeneous elements. 

-Array memory allocation is static and continuous while List memory allocation is dynamic and random. 

-In Array, users don't need to keep in track of next memory allocation while In the list, the user has to keep in track of next location where memory is allocated.

Read More →