Question: what is the difference between vector and list?
Answer: Difference between Vector and List in C++ ... List stores elements at non contiguous memory location i.e. it internally uses a doubly linked list i.e. Whereas, vector stores elements at contiguous memory locations like an array i.e.