I was reading this but now I am confused with efficiency of two ways to pass parameters.
Compared with pass by value, this tutorial told me that pass by reference is fast "because a copy of the argument is not made". However, it also told me that "dereferencing a pointer(reference) is slower than accessing it directly, accessing values passed by reference is slower than accessing values passed by value".
So here is my question: if pass by reference faster or slower than pass by value?
Thanks!