next up previous
Next: About this document ... Up: CS101 Lecture 10 Previous: Factorial Example

Typical Mistakes in using Functions

  1. Forget the Type of a Function (Function Fact(n) versus Integer Function Fact(n))
  2. Forget INTENT(IN) for formal arguments
  3. Attempt to change the value of a formal argument declared with INTENT(IN)
  4. Forget to store a value to the function name before END
  5. Function name is used in the right-hand side



G. Sivakumar 2000-08-23