What is the difference between call by reference and call by value in functions in C++
Answers
Answered by
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.
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
Similar questions
English,
8 months ago
Business Studies,
8 months ago
Biology,
1 year ago
Chemistry,
1 year ago
English,
1 year ago
Social Sciences,
1 year ago