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
Which one is a preferred language C or C++? Why?
Can we use pointers in c++?
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
What is c++ mutable?
What is the use of this pointer in c++?
When should overload new operator on a global basis or a class basis?
Difference between class and structure.
What is the error in the code below and how should it be corrected?
What is a wchar_t in c++?
What is main function in c++ with example?
Can we use struct in c++?
Can we distribute function templates and class templates in object libraries?
What does std :: flush do?
What is tellg () in c++?
What is public, protected, private in c++?