Which error will be produced if a local object is returned by reference outside a function?
(a) Out of memory error
(b) Run time error
(c) Compile time error
(d) No error
This question was addressed to me in homework.
This intriguing question originated from Returning Objects in division Assigning Object, Pointer to Objects, Passing and Returning Object of Object Oriented Programming