A 2D array requires two indexes to access an element in the array.
The posted code uses the variable row to index into the first dim of the array
and uses the variable col to index into the second...