InterviewSolution
Saved Bookmarks
| 1. |
How Many Ways Can An Argument Be Passed To A Subroutine And Explain Them? |
|
Answer» An argument can be passed in TWO ways. 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. An argument can be passed in two ways. 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. |
|