| Parameter Passing -- What is the issue? |
| Last modified on June 19, 2001 by rpj@cs.rit.edu. | ||
| Parameter Passing -- What is the issue? |
| Information passing | |
| When a procedure is called, information is passed from the caller to the procedure. |
| Last modified on June 19, 2001 by rpj@cs.rit.edu. | ||
| Parameter Passing -- What is the issue? |
| Information passing |
| Formal parameters | |
| The procedure specifies formal parameters that it manipulates in its body |
| Last modified on June 19, 2001 by rpj@cs.rit.edu. | ||
| Parameter Passing -- What is the issue? |
| Information passing |
| Formal parameters |
| Actual parameters | |
| The caller supplies actual parameters that are associated with the formal parameters. |
| Last modified on June 19, 2001 by rpj@cs.rit.edu. | ||
| Parameter Passing -- What is the issue? |
| Information passing |
| Formal parameters |
| Actual parameters |
| Reference values | |
| When mutable variables are used as formal and/or actual parameters, there are rules governing what sort of "value" is actually passed by
the caller. These are called parameter passing rules. |
| Last modified on June 19, 2001 by rpj@cs.rit.edu. | ||