GlobalLogic Interview Question

I was asked to explain about vector in c++ and when should I use a dynamically size varying vector or when an array.

Interview Answer

Anonymous

Sep 1, 2021

I just explained how the allocation of memory for vector happens and then stated when should we use array and when a vector.