why prefer pass-by-reference to pass-by-value??
CGI-Members :: Technical Discussions :: Need Help! :: C/C++
Page 1 of 1•
why prefer pass-by-reference to pass-by-value??
hiii
friends lets hv a discussion over this.
friends lets hv a discussion over this.
Thanks & Regards
Ujjwal Khare
Email : firstname dot lastname at cgi dot com
Ujjwal Khare
Email : firstname dot lastname at cgi dot com
Re: why prefer pass-by-reference to pass-by-value??
I don't think call by reference is preferred over call by value. It all depends on the requirement of the usage.
When you need the value to be changed in the called function then use call by reference, else use call by value.
what say?
When you need the value to be changed in the called function then use call by reference, else use call by value.
what say?
Re: why prefer pass-by-reference to pass-by-value??
This question is with respect to Cpp.
Thanks & Regards
Ujjwal Khare
Email : firstname dot lastname at cgi dot com
Ujjwal Khare
Email : firstname dot lastname at cgi dot com






