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 |
How to convert integer to string in C++
How can you force the compiler to not generate them?
Tell us the size of a float variable.
Write a C++ Program to Display Number (Entered by the User).
Write a C++ program to print strings in reverse order.
Write a program to input an integer from the keyboard and display on the screen “WELL DONE” that many times.
What is latest update of C++ ?
Explain the difference between method overriding and method overloading in C++?
What is the 4 difference between delete[] and delete?
What are the different scope C++ provide ?
What is the difference between member functions and static member functions?
What is a virtual base class?