memset in C to initialise 2D array 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);