On Sat, 10 Apr 1999, Darius Blaszijk wrote:
>
> #include<stdio.h>
> int main ()
> { const dim = 5;
> float a[dim-1][dim-1];
The above creates a matrix of [4][4]; that is, each dimension varies from
[0] to [3]. a[0][3] is the last element of the first row; a[0][4] is
infact the first element of the second row which is better represented by
a[1][0].
This becomes clearer if you look at the whole thing as a pointer. "a" is
just a pointer and a[i][j] is, in this case, the pointer incremented
i*4+j.
I hope this helps.
Hossein