Question: Write a function to determine the index of the row in a 2D array of integers with the highest sum of all its elements For

Write a function to determine the index of the row in a 2D array of integers with the highest sum of all its elements For example, given the following 2D array: int matrix[MAXSIZEJIMAXSIZE-10,2,3),3,20,4) (5,8,2) the number of rows, and the number of colums, your function should return 1 (the sum of elements of row 0-15, the sum of elements of row 1 27, and the sum of elements of row 2 15) If more than one row has the highest sum of all its element, your function should return the lowest index of the group of rows with the highest sum of all its elements Hint: in C++ array indexing starts from zero LAB ACTIVITY 15.5.1: Extra-2D Arrays, Functions, and Loops 0/15 main.cpp Load default template... 1 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
