What is the difference between an ARRAY and a LIST in C++?
Answer / 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 |
If class D is derived from a base class B
How does stack look in function calls? When does stack overflow? What can you do to remedy it?
Define an Abstract class in C++?
What is a virtual function in C++?
What are "pure virtual" functions?
0 Answers Adobe, Alter, iNautix,
Is deconstructor overloading possible? If yes then explain and if no Then why?
What is the 4 difference between delete[] and delete?
How to reverse a string in C++
Define type casting in C++.
Explain function prototypes in C++.
How do you work around them?
What is a constructor initializer list?