Which is the correct syntax for defining a function which passes an object by reference?
(a) className& functionName ( )
(b) className* functionName( )
(c) className-> functionName( )
(d) &className functionName()
This question was posed to me in an online interview.
My question is from Returning Objects topic in chapter Assigning Object, Pointer to Objects, Passing and Returning Object of Object Oriented Programming