6.1.1 Actual Argument and Dummy Argument Association

Actual arguments must agree in order, number, and data type (or structure, for record arguments) with their corresponding dummy arguments. Actual arguments can be scalar references, array name references, aggregate references, alternate return specifiers, or subprogram names. The dummy arguments specified in subprogram definitions, representing corresponding actual arguments, appear as unsubscripted names.

Although dummy arguments are not actual variables, arrays, records, or subprograms, each dummy argument can be declared as though it were a variable, array, record, or subprogram. The following rules apply to using dummy arguments:

The length of a dummy argument with a data type of character must not be greater than the length of its associated actual argument. If the character dummy argument's length is specified as *(*), it uses the length of the associated actual argument. (This is known as a passed-length character argument.)

The following sections discuss several kinds of arguments:


Previous Page Next Page Table of Contents