Date: Mon, 11 Nov 1996 17:58:02 GMT Server: NCSA/1.5 Content-type: text/html Last-modified: Tue, 30 Apr 1996 00:24:19 GMT Content-length: 14552 CS 110 Section 2 Lecture Notes - Weeks 6

Lecture Notes - Week 6


Topic:
User-defined functions and subroutines. Input arguments and local variables.

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 Gareth S. Bestor (bestor@cs.wisc.edu). Last modified April 29, 1996.