Performancewise, is it better to pass by reference or pass by pointer if applicable?
Thanks,
Kuphryn
Performancewise, is it better to pass by reference or pass by pointer if applicable?
Thanks,
Kuphryn
"1. Use References instead of pointers for efficiency"
= )
Okay. Thanks.
Oh oh. Looks like I need to go back to my notes in C++ How To...
Kuphryn
To quote from my C++ How to....
Deitel & Deitel Software Engineering Observation:
For the combined reasons of clarity and performance, many C++ programmers perfer that modifiable arguments be passed to functions by using pointers, small non-modifiable arguments be passed call-by-value, and large non-modifiable arguements be passed to functions by using references to constants.
Ted