function to calculate average of Sum of all elements in sub-matrix [closed]
I want to make a function that take three arguments 2-D array. (int array[rows][cols]) an integer. (int n) address of array[i][j]. Means my function prototype should look like this double Sub_avg(…