Monday, March 11, 2019

PARAMDM3

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

PARAMDM3 is an example program (Listing 8-3) that appears on page 98 of the book "Pascal Primer" by David Fox and Mitchell Waite. It demonstrates passing multiple  pass-by-value parameters during a procedure call.

It also shows that you can have two different variables with the same name. There is a global Number variable in the main program and a local Number variable in the the RepeatPhrase procedure.

It is very similar to the PARAMDM1  and the PARAMDM2 example programs.



The link command looks like:

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

When you run the program, it looks like:


No comments:

Post a Comment