Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

2d vector c++ size

vector<vector<int>> a;
int r=a.size() //gives no of rows
  int c=a[0].size() //gives no of columns
 
PREVIOUS NEXT
Tagged: #vector #size
ADD COMMENT
Topic
Name
6+1 =