Question: 33. Each of following code has an error. Explain the error and CORRECT it. [14 points] 1) // The f // This code has ONE
33. Each of following code has an error. Explain the error and CORRECT it. [14 points] 1) // The f // This code has ONE error [2 points int sum2D(int arr[NROWS[NCOLS) unction sum2D calculates the sum of all elements of a two-dimensional int array int sum 0; for (int i :0; iNROWS; i++) for (int j - o: j
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
