Which is more effective while calling the functions?
27 views
- call by value
- call by reference (Correct Answer)
- call by pointer
- call by object
Explanation
In the call by reference, it will just passes the reference of the memory addresses of passed values rather than copying the value to new memories which reduces the overall time and memory use.