Ah! Ok, NOOOOOOW it makes sense. I guess ;) Seriously, though, it does. But, what advantage does an array of arrays have over a two dimensional array? They seem to work in a similar way. That is, in this:
We have two elements per index. That is, we have:
Seems to work the same as:
In this instance, are they the same? I guess the difference is that the 'secondary' array COULD be multidimensional if necessary. Am I close?
Thanks,
Russell
Global Arr:Int[2,2]
We have two elements per index. That is, we have:
Arr[0,0] = 1 ; index one's first element Arr[0,1] = 2 ; index one's second element Arr[1,0] = 3 ; index two's first element Arr[1,1] = 4 ; index two's second element
Seems to work the same as:
Arr[0][0] = 1 Arr[0][1] = 2 Arr[1][0] = 3 Arr[1][1] = 4
In this instance, are they the same? I guess the difference is that the 'secondary' array COULD be multidimensional if necessary. Am I close?
Thanks,
Russell