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 Default Constructor in C++ ?
Implement a 2D bit-matrix representing monochrome pixels which will have only OFF/ON values and will take on an average only one bit of memory for each stored bit. How to perform various operations on it?
What are issues if we mix new and free in C++?
Write a C++ program to print strings in reverse order.
Explain the difference between method overriding and method overloading in C++?
Write a C++ Program to find Square Root of a number using sqrt() function.
How can a C function be called in a C++ program?
When would you choose to return an error code rather than throw an exception?
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 do you mean by exception handling in C++?
C++ Public access specifier instead of Private – What is bad ?
CDPATH shell variable is in(c-shell)