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