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 |
Explain the FOR loop with a help of a code.
How to stop class inheritance in C++ with condition that object creation should be allowed
Define namespace.
Explain the difference between C and C++.
What is Copy Constructor?
What does malloc return in C and C++?
When would you choose to return an error code rather than throw an exception?
what is friend function in C++?
write a program To generate the Fibonacci Series.
Can we provide one default constructor for our class?
Execute the qsort () in c/sort() in c++ library or your own custom sort which will sort any type of data on user defined criteria.
Tell me about virtual function