Passing by value: This method copies the value of an argument into the formal parameter of the subroutine. Passing by reference: In this method, a reference to an argument (not the value of the argument) is passed to the parameter.
Liked By
Write Answer
How many ways can an argument be passed to a subroutine and explain them?
Join MindStick Community
You have need login or register for voting of answers or question.
Amit Singh
28-Mar-2011- passing by value
- passing by reference.
Passing by value: This method copies the value of an argument into the formal parameter of the subroutine.Passing by reference: In this method, a reference to an argument (not the value of the argument) is passed to the parameter.