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 searching? Explain linear and binary search.
How to access a variable of the structure?
List the issue that the auto_ptr object handles?
Tell us the size of a float variable.
Explain the term memory alignment?
Why oops is important?
Explain function prototypes in C++.
Explain operator overloading.
When would you use a pointer? A reference?
What is iomanip c++?
When there is a global variable and local variable with the same name, how will you access the global variable?
What are the operators in c++?
What is the output of the following program? Why?
Who created stl?
Give an example of run-time polymorphism/virtual functions.