Computer Science, asked by MeenshiPandey, 1 year ago

What is the difference between call by reference and call by value in functions in C++

Answers

Answered by siddhartharao77
4
In call by value, the Original value cannot be changed. Whereas it is possible in the call by reference.

In call by value Whatever changes that are made in the formal arguments doesn't get reflected on actual arguments.  Whereas it gets reflected in the call by reference.

Most of the time call by value works locally. whereas in the call by reference it works globally.




MeenshiPandey: thnx a lot
siddhartharao77: My Pleasure..
siddhartharao77: Thank You Meenshi Pandey for the brainliest.
Similar questions