parameter passing mechanisms
Hi,
can someone tell me why and when one of the following is prefered over the other
pass by reference using reference arguments
pass by reference using pointer arguments
Both are insecure (unless const is used to qualify the parameters)
but dont both of them essentially have the same dynamics ?? so why is one prefered over the other ??
Please eluciate.
Thanks
|