In C++ (C Plus Plus), when you call by reference, you are directly accessing the data of the referenced object.
When you pass an object to a function by reference, any and all alterations to the object made within the function carry through to the actual object.
Chat with our AI personalities