http://www.cs.wisc.edu/~tick/cs302/Week4.html CS 302 Section 70 Lecture Notes - Week 4

Lecture Notes - Week 4


Topic:
User-defined functions and subroutines. Input and output arguments.

Text:
Chp. 6.1 - 6.6, 6.8

Notes:

User-Defined Functions

User-Defined Functions

Calling User-Defined Functions

Function Header

Argument Declarations

Actual Arguments

Local Variables

Function Result

RETURN Statement

END Statement

Order of Execution


Subroutines

User-Defined Subroutines

Calling Subroutines

Subroutine Header

Argument Declarations

Local Variables

Subroutine Results

Input Arguments

Output Arguments

Input/Output Arguments


Copyright © 1996 Modified fromGareth S. Bestor (bestor@cs.wisc.edu). Last modified September 27, 1996.