#include #include #define NUM_ROW 4 #define NUM_COL 4 // sum_min should return the sum of // the minimum values in each row of the array int sum_min(int size, int array[NUM_ROW][NUM_COL]) { int sum = 0; int min; for (int i = 0; i < NUM_ROW; i++) { min = array[i][0]; for (int j = 0; j < NUM_COL; j++) { if(array[i][j] < min) { min = array[i][j]; } } sum = sum + min; } return sum; } // This is a simple main function which could be used // to test your sum_min function. // It will not be marked. // Only your sum_min function will be marked. int main(void) { int test_array[NUM_ROW][NUM_COL] = { {}, {}, {}, {}}; int result = sum_min(NUM_COL, test_array); printf("%d\n", result); return 0; }