Answers

Question and Answer:

  Home  Programming

⟩ How many ways can an argument be passed to a subroutine in programming?

An argument can be passed in two ways in a programming language. They are Pass by Value and 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.

 209 views

More Questions for you: