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 an example of genetic polymorphism?
Explain the difference between new() and malloc() in c++?
What is a dll entry point?
What is #include cstdlib in c++?
Discuss about iteration statements in C++ .
How do you answer polymorphism?
Can I learn c++ without c?
what is different between oops and c++
How does java differ from c and c++?
What is meant by entry controlled loop?
Is c++ proprietary?
Execute the qsort () in c/sort() in c++ library or your own custom sort which will sort any type of data on user defined criteria.
What is singleton pattern in c++?
What are the five basic elements of a c++ program?
Can you pass an array to a function in c++?