hi everyone

I wanna to ask about calculation of 2-D array address I remember that equation that can do this

for an array, char a[R][C];

Address of an element a[N][M]; = baseAddress + elementSize * (N*C+ M);

Is it right?? :)

Other thing, is it deferent if the array is lower or upper triangular, or the same way by substituting missing elements by zeros??

e.g.

1 15 20

3 30

60

Any help I would appreciate ..

thanks:)