The following code example illustrates the array-of-arrays technique. First, this code creates an array
. Then, in the outer
loop, each element of
is itself initialized as
becomes an array of arrays. In the inner
loop, all elements
in each newly created "inner" array are set to zero.