What is the difference between an ARRAY and a LIST in C++?
Answer Posted / nashiinformaticssolutions
Although lists and arrays are both used to store data, they differ in a few important ways. These consist of:
• A list's size is changeable, but an array's is fixed.
• While a list allows sequential access, in which the user must navigate through the elements to locate a given index, an array allows random access using indexes.
• While a list can store entries in any memory location, an array stores elements in contiguous memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is else if syntax?
What is the best way to take screenshots of a window with c++ in windows?
What are the storage qualifiers?
Explain function overloading
What does int * mean in c++?
What is the difference between an enumeration and a set of pre-processor # defines?
What is called array?
When should I use unitbuf flag?
Is c++ map a hash table?
Does dev c++ support c++ 11?
It is possible to build a C++ compiler on top of a C compiler. How would you do this?
What is the use of function pointer?
What is data binding in oops?
Can I learn c++ without learning c?
What is inheritance write a program to show use of inheritance?