Subroutine in the programming

Describe the number of ways that an argument is passed to a subroutine in the programming?




The argument can be passed in two ways in the programming language. They are Pass by Value and Passing by Reference.

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

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

   Related Questions in Programming Languages

2015 ©TutorsGlobe All rights reserved. TutorsGlobe Rated 4.8/5 based on 34139 reviews.