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 the disadvantage of using a macro?
What is a try block?
• What are the desirable attributes for memory managment?
What are the advantages of using typedef in a program?
What is DlgProc?
What is c++ in english?
What is a pointer how and when is it used?
How to call a non virtual function in the derived class by using base class pointer
What is command line arguments in C++? What are its uses? Where we have to use this?
What are the basics of local (auto) objects?
When is dynamic checking necessary?
What is the use of "new" operator?
How to improve object oriented design skills?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
How do you initialize a string in c++?