Passing Arguments by Reference
Previously we’ve seen how variables are passed by value. While this works well in many cases, it means that the variable has to be duplicated when it is passed to the function. For large, and/or complicated, variables – like when we start using objects, this can take precious time and resources. However, C++ offers us…