1.

In how many ways can an object be passed to a function?(a) 1(b) 2(c) 3(d) 4I have been asked this question during an internship interview.I'm obligated to ask this question of Passing and Returning Object with Functions topic in division Object of Object Oriented Programming

Answer»

The correct choice is (c) 3

Best EXPLANATION: The OBJECTS can be passed in three WAYS. Pass by VALUE, pass by reference and pass by address. These are the general ways to pass the objects to a function.



Discussion

No Comment Found

Related InterviewSolutions