hi friends,
can we use matrix array in micropascal that is an array is
sample:array[0..5]of byte;
i want to use 3x6 matrix array.
sample[j] as well.
how can i do this.
regards...
matrix array
If you use Help , you'll find:
Code: Select all
m: array[50] of array[20] of byte; //2-dimensional array of size 50x20
For version 6.0.01.
Isn't the PDF version of help on the mp site?
Isn't the PDF version of help on the mp site?
Code: Select all
procedure example(var m: array[50] of array[20] of byte); // we can omit first dimension
begin
...
inc(m[1][1]);
end;
var
m: array[50] of array[20] of byte; // 2-dimensional array of size 50x20
n: array[4] of array[2] of array[7] of byte; // 3-dimensional array of size 4x2x7
begin
...
func(m);
end.