Differentiate between call by value and call by reference of a function.
Answers
Answered by
2
Call by value :
•In this method of calling a function the values are passed in the main.
•No change can be seen in the actual values of the variables.
Call by reference :
•In this method of calling a function the memory location of a value is passed.
• Values get changed if any operations are applied on them and can be seen reflected on the output..
Hope it helps you
•In this method of calling a function the values are passed in the main.
•No change can be seen in the actual values of the variables.
Call by reference :
•In this method of calling a function the memory location of a value is passed.
• Values get changed if any operations are applied on them and can be seen reflected on the output..
Hope it helps you
Similar questions