What is vector data-type in C++ ?
-A vector is a sequence container class that implements dynamic array, means size automatically changes when appending elements.
-A vector stores the elements in contiguous memory locations and allocates the memory as needed at run time.
Difference between Vector and array:
-Array is static approach while vector is dynamic approach.
-Array size cannot be changed during run time while vector memory depends on numbers of elements.