Vote Up 0 Vote Down

difference between pass by value and pass by reference

Just want to asked what is the difference between pass by value and pass by reference?... and what is much efficient to be used? Hoping for answer
flag

Answers


Vote Up 0 Vote Down
pass by value means-we call a function with parameter and call by reference means-we call a function with its parameter address
flag | link |
Vote Up 0 Vote Down
pass by reference is much more efficient as pass by value involves copying of values whereas pass by reference doesn't involve it.
flag | link |

Your Answer

Login before answering

Login with facebook