Answers for "how to fill a 2d array with a single value in c++"

C++
0

filling 2d array with 0 c++

int a[x][y];
std::fill(a[0], a[0] + x * y, 0);
Posted by: Guest on June-10-2020

Browse Popular Code Answers by Language