Which set of statements totals the items in each row of two-dimensional array items, and displays each total?
a.
int total = 0; for ( int row = 0; row < ; row++ ) { total = 0; for ( int column = 0; column < a[ row ].length; column++ ) total += a[ row ][ column ]; System ( "%d\n", total ); }
b.
int total = 0; for ( int row = 0; row < ; row++ ) { for ( int column = 0; column < a[ row ].length; column++ ) total += a[ row ][ column ]; System ( "%d\n", total ); }
c.
int total = 0; for ( int row = 0; row < ; row++ ) { for ( int column = 0; column < a[ column ].length; column++ ) total += a[ row ][ column ]; System ( "%d\n", total ); }
d.
int total = 0; for ( int row = 0; row < ; row++ ) { total = 0; for ( int column = 0; column < a[ column ].length; column++ ) total += a[ row ][ column ]; System ( "%d\n", total ); }