Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

finding the size of vector in c++

vector<int> a;
//to directly find the size of the vector;
//use  a.size(;

cout <<" " << a.size();
 
PREVIOUS NEXT
Tagged: #finding #size #vector
ADD COMMENT
Topic
Name
2+3 =