Procedures
William Johnston Buchanan · 1998
Parameter passing involves passing input parameters into a module (a procedure in Pascal) and receiving output parameters back from the module. For example a quadratic equation module requires three parameters to be passed to it, these would be a , b and c . These are defined as the input parameters. The output parameters would be the two roots of the equation, such as root1 and root2 . Another parameter could also be passed back to indicate the type of root (such as singular, real or complex). This indication is normally known as a flag. Figure 8.1 illustrates the passing of parameters into and out of a module.