Answer
The third subscript is always 1. If we passed this array to a subroutine
expecting a 2x2 array, it would happily access the first four elements of the
2x2x2 array without realizing that there were four more elements stored beyond
them. So, for example, when it accessed array element (2,1), it would actually
be accessing (2,1,1) without knowing any better.
Return to lesson.
Hamlet Project
hamlet@cs.utah.edu