What is vector how is different in array?

1 answer

Answer

1043735

2026-04-19 05:56

+ Follow

  1. A Vector is a collection while an Array is a simple data type
  2. Vectors are thread safe by default, arrays are not
  3. Vectors can grow in size automatically whereas you have to declare the initial size of an array and it does not grow in size

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.