Answers for "initialize all elements of 2d array to c++ memset"

C++
0

initialize 2d array c++ memset

int arr[10][20] = {0};  // easier way
// this does the same
memset(arr, 0, sizeof arr);
Posted by: Guest on January-14-2021

Code answers related to "initialize all elements of 2d array to c++ memset"

Browse Popular Code Answers by Language