RosettaCodeData/Task/Create-a-two-dimensional-array-at-runtime/PL-I/create-a-two-dimensional-array-at-runtime-1.pli

13 lines
284 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
/* First way using a controlled variable: */
declare A(*,*) float controlled;
get list (m, n);
allocate A(m,n);
get list (A);
put skip list (A);
/* The array remains allocated until the program terminates, */
/* or until explicitly destroyed using a FREE statement. */
free A;