how to initialize vector array in c++ code example
Example 1: how to initialize vector in c++ with all elements 0
vector<int> arr(10,0);
Example 2: how to initialize a vector in c++
std::vector<type> name;
vector<int> arr(10,0);
std::vector<type> name;