What is the difference between std::vector and std::list



What is the difference between std::vector and std::list..

Answer / 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

More C++ General Interview Questions

what are Access specifiers in C++ class? What are the types?

0 Answers  


Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

0 Answers  


What is the advantage of an external iterator.

0 Answers  


Which c++ compiler is best?

0 Answers  


What is the output of the following program? Why?

0 Answers  


What is encapsulation in c++?

1 Answers  


How to access a variable of the structure?

0 Answers  


State the difference between delete and delete[].

0 Answers  


Differentiate between late binding and early binding.

0 Answers  


Why is c++ still best?

0 Answers  


When you overload member functions, in what ways must they differ?

0 Answers  


What is the difference between strcpy() and strncpy()?

0 Answers  


Categories