null vector example in c++ for 2d vector Example: initializing 2d vector vector<vector<int> > vec( n , vector<int> (m, 0));