c++ how to get the actual size of a vector 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();