What is the difference between std::vector and std::list
Answer Posted / nashiinformaticssolutions
o Vector: Uses contiguous memory and supports random access.
o List: Uses linked nodes and is better for frequent insertions/deletions.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain method of creating object in C++ ?
What language does google use?
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
How do you find out if a linked-list has an end?
In the derived class, which data member of the base class are visible?
What is a Default constructor?
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
Is java as fast as c++?
Write about the access privileges in c++ and also mention about its default access level?
What do nonglobal variables default to a) auto b) register c) static
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
How do I use arrays in c++?
When does a 'this' pointer get created?
Why can templates only be implemented in the header file?
What is the equivalent of Pascal's Real a) unsigned int b) float c) char