- These are 2 independent/orthogonal
issues when you pass parameters:
- How a function
passes a
parameters:
- Pass the parameter
by value
- Pass the parameter
by reference
|
- Where (= what memory space) does
the function uses
to pass the
parameter:
- We can use register
(if the method is a leaf function)
- We can use the
program stack
|
|
|