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();
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #finding #size #vector
ADD COMMENT
Topic
Name
4+2 =