doesn't work if numRows == 0.

A more normal C style is to point one past the end, but I wouldn't not pull because of that.