Monday, March 11, 2019

PARAMDM2

Table of Contents ] [ List of Example Programs ] [ PARAMDM2 Disk Image ]

PARAMDM2 is an example program (Listing 8-2) that appears on page 97 of the book "Pascal Primer" by David Fox and Mitchell Waite. It demonstrates parameter passing during a procedure call and that the passed parameter doesn't change in the calling procedure even if it was changed in the called procedure.

It is not that much different from the PARAMDM1 example program except for some testing code.


The link command looks like:

LINKER V1.0
*D2:PARAMDM2,PASLIB/S

When you run the program, it looks like:



No comments:

Post a Comment