private int[][] mat;public int totalColumn(int c){/* blank */}The totalColumn method will sum up all values on the provided column c.Consider the following proposed implementations of the totalColumn method.I.int sum = 0;for(int i=0; i < mat[r].length; i++)sum = sum + mat[c][i];return sum;II.int sum = 0;for(int i=0; i < mat.length; i++)sum = sum + mat[i][c];return sum;III.int sum = 0;for(int i=0; i < mat[c].length; i++)sum = sum + mat[i][c];return sum;Which of the proposed implementations will correctly implement method totalColumn ?a I, II, and III onlyb III onlyc I onlyd II onlye I and II only



Answer :

Other Questions