how many ways can an argument be passed to a


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

Ans) An argument can be passed in two way in a programming language. They are Pass by Value and Passing by Reference.

Passing by value: This process copies the value of an argument into the formal parameter of the subroutine.

Passing by reference: In this process, a reference to an argument (not the value of the argument) is passed to the parameter.         

 

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: how many ways can an argument be passed to a
Reference No:- TGS0413221

Expected delivery within 24 Hours