Differentiate between an array and a list?



Differentiate between an array and a list?..

Answer / Dinesh Chandra Tripathi

An array is a contiguous block of memory of the same data type, while a list can contain different data types and elements are not necessarily contiguous. In C++, arrays have a fixed size, while lists can dynamically resize.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What parameter does the constructor to an ofstream object take?

1 Answers  


How do c++ struct differs from the c++ class?

1 Answers  


Difference between Constructors and static constructors?

3 Answers   IBM, TCS,


What is the equivalent of Pascal's Real a) unsigned int b) float c) char

1 Answers  


What is setiosflags c++?

1 Answers  


What is a .lib file in c++?

1 Answers  


What is c++ vb?

1 Answers  


What do you mean by delegate? Can a user retain delegates?

1 Answers  


What is a multimap c++?

1 Answers  


what are the characteristics of Class Members in C++?

1 Answers  


What is a class template in c++?

1 Answers  


How do I use turbo c++?

1 Answers  


Categories