IBM interview question

How do vectors work in c++?