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
Is there a sort function in c++?
What is polymorphism explain?
What are the four partitions in which c++ compiler divides the ram?
Discuss about iteration statements in C++ .
How do you establish a has-a relationship?
What is class in c++ with example?
Can we run c program in turbo c++?
What is new keyword in oops?
What is a pdb file?
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
What is vectorial capacity?
what are the iterator and generic algorithms.
Why is static class not inherited?
Which bit wise operator is suitable for putting on a particular bit in a number?
What will happen if a pointer is deleted twice?