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 |
What is a class in C++?
1 Answers Amazon, TCS, UGC Corporation,
How does free know the size of memory to be deleted
Write a C++ Program to find Square Root of a number using sqrt() function.
What Is A Default Constructor in C++ ?
When must you use a constructor initializer list?
What kind of problems does name mangling cause?
Write a C++ Program to Find Sum and Average of three numbers.
What is the meaning of the following declaration: int *const *const *i?
Write a program to read the values a, b and c and display x, where x=a/b–c. Test the program for the following values: (a) a = 250, b = 85, c = 25 (b) a = 300, b = 70, c = 70
What does it mean to declare a member function as static in C++?
Consider the following C++ program
Identify the errors in the following program. #include <iostream> using namespace std; void main() { int i=5; while(i) { switch(i) { default: case 4: case 5: break; case 1: continue; case 2: case 3: break; } i-; } }