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
On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?
What is math h in c++?
How do you invoke a base member function from a derived class in which you’ve overridden that function?
Should I learn c or c++ or c#?
Why c++ is created?
What are the advantages of using typedef in a program?
What is algorithm in c++ programming?
What is ios in c++?
What does obj stand for?
What is the protected keyword used for?
Is c++ a difficult language?
Explain about vectors in c ++?
Refer to a name of class or function that is defined within a namespace?
Explain linear search.
What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero