what is Call by value, call by reference, call by address? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what is Call by value, call by reference, call by address?

30th Jan 2017, 4:08 PM
vinay marmat
vinay marmat - avatar
2 Answers
+ 3
The major difference between call by value and call by reference is that in call by value a copy of actual arguments is passed to respective formal arguments. While, in call by reference the location (address) of actual arguments is passed to formal arguments, hence any change made to formal arguments will also reflect in actual arguments.
30th Jan 2017, 5:40 PM
shailesh saroj
shailesh saroj - avatar
0
find area of circle by using frien functions ?
8th Feb 2017, 8:28 PM
vinay marmat
vinay marmat - avatar