1.

How many independent objects can be returned at same time from a function?(a) 1(b) 2(c) 3(d) 4I got this question in an online quiz.Enquiry is from Returning Objects in section Assigning Object, Pointer to Objects, Passing and Returning Object of Object Oriented Programming

Answer»

The correct choice is (a) 1

For explanation: Only one object can be RETURNED at a time. This is because a function is only CAPABLE of RETURNING a SINGLE value at a time. THOUGH array of objects can be returned from a function.



Discussion

No Comment Found

Related InterviewSolutions