in c++, you have arrays and vectors

  • raw arrays have less functions, have to manually allocate size
  • vectors are dynamically sized.
#include vector
vector<int> vector1 = {1, 2, 3, 4, 5};
vector<string> vector2 = {"Hi", "Geeks,",
                        "Welcome!"};