Which is the correct syntax for defining a function which passes an object by reference?
Which is the correct syntax for defining a function which passes an object by reference? Correct Answer className& functionName ( )
The function declaration must contain the class name as return type. But, a & symbol should be followed by the class name. & indicates that the object being returned will be returned by reference.