C++

robmiller said:
Presuming that that's what you want to do--initialise rowNo/colNo to 1--should you really be starting with 1? Array indexes typically start at 0.

Typically, yes, but the fact that the question defines the array to be array[rows+1][colums+1] suggests that the zero-indexed rows colums are being ignored to allow the student to use the more intuitive notion that the first row/column is indexed at 1.
 
Back
Top Bottom