1.

Is name of an array of objects is also a pointer to object?(a) Yes, always(b) Yes, in few cases(c) No, because it represents more than one object(d) No, neverThe question was asked in an online interview.I'm obligated to ask this question of Pointer to Objects in chapter Assigning Object, Pointer to Objects, Passing and Returning Object of Object Oriented Programming

Answer»

Right ANSWER is (a) YES, always

Best EXPLANATION: The ARRAY name represents a pointer to the OBJECT. The name alone can represent the starting address of the array. But that also represents an array which is in turn stored in a pointer.



Discussion

No Comment Found

Related InterviewSolutions