In which of the following way(s) can the object be returned from a function?
(a) Can only be returned by value
(b) Can only be returned by reference
(c) Can be returned either by value or reference
(d) Can neither be returned by value nor by reference
This question was addressed to me in homework.
The question is from Returning Objects topic in division Assigning Object, Pointer to Objects, Passing and Returning Object of Object Oriented Programming