RosettaCodeData/Task/Multi-dimensional-array/ALGOL-W/multi-dimensional-array-5.alg

6 lines
241 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
% declare a procedure that has a three-dimensional array parameter %
procedure p ( integer array a1 ( *, *, * ) ) ; a1( 1, 2, 1 ) := 3 ;
% call the procedure with a subset of the 4 dimensional array %
p( a( *, 2, *, * ) );