initialize 2d array using memset code example
Example: initialize 2d array c++ memset
int arr[10][20] = {0}; // easier way
// this does the same
memset(arr, 0, sizeof arr);
int arr[10][20] = {0}; // easier way
// this does the same
memset(arr, 0, sizeof arr);