how to find size of vector array in c++ code example
Example: finding the size of vector in c++
vector<int> a;
//to directly find the size of the vector;
//use a.size(;
cout <<" " << a.size();
vector<int> a;
//to directly find the size of the vector;
//use a.size(;
cout <<" " << a.size();