Example:

arrString is array <growth=N> [10] strings

arrInt is array [5] ints

 

<Array name> is array [<growth>] of [<Dimension>] <Type of array elements>

 

<Array name>:

Name of the array variable to declare.

 

<growth>:

 

Optional mode for enlarging the array:

nothing (by default) or "<growth=0>": the array is not automatically enlarged. For example, a runtime error will occur if the array contains 5 elements and if the program accesses the element 6 or 100.

"<growth>" or "<growth=1>": the array is automatically enlarged by 1 element. For example, if the array contains 5 elements and if the program accesses the element 6, the array is automatically enlarged to handle the element 6 ; a runtime error will occur if the program accesses the element 100.

"<growth=N>": the array is automatically enlarged by the number of necessary elements. For example, if the array contains 5 elements and if the program accesses the element 6, the array is automatically enlarged to handle the element 6 ; if the program accesses the element 100, the array is automatically enlarged to handle the element 100. The intermediate elements are initialized with the default value for this type of array elements.