1.

What Are Different Types Of Arguments?

Answer»

A parameter is a variable used during the DECLARATION of the function or SUBROUTINE and arguments are passed to the function , and it should match with the parameter defined. There are two TYPES of Arguments.
•Call by Value – Value passed will get modified only inside the function , and it returns the same value WHATEVER it is passed it into the function.
•Call by REFERENCE – Value passed will get modified in both inside and outside the functions and it returns the same or different value.

 

A parameter is a variable used during the declaration of the function or subroutine and arguments are passed to the function , and it should match with the parameter defined. There are two types of Arguments.
•Call by Value – Value passed will get modified only inside the function , and it returns the same value whatever it is passed it into the function.
•Call by Reference – Value passed will get modified in both inside and outside the functions and it returns the same or different value.

 



Discussion

No Comment Found