c is column , varies from 0 to C - 1
public int c ; public Cell ( int r , int c ) { this . r = r ; this . c = c ; } } ; static void printSums ( int [ , ] mat , Cell [ ] arr , int n ) { int sum = 0 ; int [ ] row = new int [ R ] ; int [ ] col = new int [ C ] ;