This is only correct if the array is 2D. This is probably better illustrated with an example.