2d array in c++ filled wih 0 code example Example: filling 2d array with 0 c++ int a[x][y]; std::fill(a[0], a[0] + x * y, 0);