An Easy but Tedious Way

An array can certainly be passed to a function or a subroutine for further processing. Just recall that an array has three components: a name, a type and an extent. For the first two, they are similar to passing a variable, and the third one can be made available when declaring an array formal argument. However, the problem is that since an extent consists of a lower bound and an upper bound, in order to declare an array formal argument correctly, these two bounds must also be passed.

Examples

Additional Notes