Next: Simple example of Subroutine
Up: Erroneous Code
Previous: Erroneous Code
There are a number of mistakes:
- A is INTENT IN so should not be assigned to.
- C is INTENT OUT which means that on entry to the subroutine
it has no defined value -- its value must be set before it appears on
the RHS of an assignment statement.
- B is not declared -- the IMPLICIT NONE statement means
that all objects must be declared.
Next: Simple example of Subroutine
Up: Erroneous Code
Previous: Erroneous Code
Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 14:10:26 GMT 1996