Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

filling 2d array with 0 c++

int a[x][y];
std::fill(a[0], a[0] + x * y, 0);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #filling #array
ADD COMMENT
Topic
Name
3+7 =