how to find size of vector matrix in c++ code example
Example 1: size of a matrix using vector c++
// finding size of a square matrix
myVector[0].size();
Example 2: finding the size of vector in c++
vector<int> a;
//to directly find the size of the vector;
//use a.size(;
cout <<" " << a.size();