memset(array, 0, sizeof(array[0][0]) * m * n);
Where m and n are the width and height of the two-dimensional array (in your example, you have a square two-dimensional array, so m == n).
memset(array, 0, sizeof(array[0][0]) * m * n);
Where m and n are the width and height of the two-dimensional array (in your example, you have a square two-dimensional array, so m == n).