MODULAR PROGRAMMING USING PROCEDURES AND FUNCTIONS
Modular programming is a technique used for writing large programs. The program is subdivided into small sections. Each section is called a module, and performs a single task.

Examples of tasks a module might perform are,

A module is known by its name, and consists of a set of program statements grouped using the begin and end keywords. The module (group of statements) is executed when you type the module name.

Pascal uses three types of modules. The first two are called PROCEDURES, the other a FUNCTION.

Procedures help support structured program design, by allowing the independant development of modules. Procedures are essentially sub-programs.


Copyright B Brown/P Henry, 1988-1999. All rights reserved.