- call by value - copies the value of an argument in to the formal parameter of the subroutine. Changes to the parameter of the subroutine has no effect on the argument used to call it.
- call by reference - the address of an argument is copied in the parameter. Changes made to the parameter will affect the argument.
Tuesday, May 15, 2007
Parameters
A subroutine's parameters can be passed on one of two ways.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment