What is the difference between Call by Value and Call by Reference?

4 years ago
C Programming

When using Call by Value, you are sending the value of a variable as parameter to a function, whereas Call by Reference sends the address of the variable. Also, under Call by Value, the value in the parameter is not affected by whatever operation that takes place, while in the case of Call by Reference, values can be affected by the process within the function.

0
Sanisha Maharjan
Jan 20, 2022
More related questions

Questions Bank

View all Questions