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

Submitted by: Administrator
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.
Submitted by: Administrator

Read Online Programming Job Interview Questions And Answers