What is the difference between an ARRAY and a LIST in C++?



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

Post New Answer

More C++ Interview Questions

How to convert integer to string in C++

0 Answers  


How can you force the compiler to not generate them?

0 Answers   Amazon,


Tell us the size of a float variable.

0 Answers   Accenture,


Write a C++ Program to Display Number (Entered by the User).

1 Answers  


Write a C++ program to print strings in reverse order.

0 Answers   Amdocs,


Write a program to input an integer from the keyboard and display on the screen “WELL DONE” that many times.

1 Answers  


What is latest update of C++ ?

0 Answers   Adobe,


Explain the difference between method overriding and method overloading in C++?

0 Answers   Accenture,


What is the 4 difference between delete[] and delete?

0 Answers   Alter,


What are the different scope C++ provide ?

0 Answers   Amdocs,


What is the difference between member functions and static member functions?

0 Answers   Alter,


What is a virtual base class?

6 Answers   Fidelity, Siemens,


Categories