how to intialise a 2d vector with 4 rows 2 collumns code example Example: initializing 2d vector vector<vector<int> > vec( n , vector<int> (m, 0));