Object Oriented Programming20765 marksFunctions
What is meant by return by reference? How can we return values by reference by using reference variable? Illustrate with example.
What is meant by return by reference? How can we return values by reference by using reference variable? Illustrate with example. [5]
Return by reference means that a function returns a reference (alias) to a variable rather than returning a copy of its value. When a function returns by reference, the caller receives direct access to the original variable, and the returned reference can be used as an lvalue (i.e., it can appear...