1.

Earlier implementations of C++ ___________________(a) Never allowed assignment to this pointer(b) Allowed no assignment to this pointer(c) Allowed assignments to this pointer(d) Never allowed assignment to any pointerThe question was posed to me in quiz.This question is from This Pointer in division Assigning Object, Pointer to Objects, Passing and Returning Object of Object Oriented Programming

Answer»

The CORRECT OPTION is (c) Allowed assignments to this pointer

Easy explanation - The EARLIER, most initial versions of C++ used to allow assignments to this pointers. That used to allow modifications of this pointer. Later that feature GOT DISABLED.



Discussion

No Comment Found

Related InterviewSolutions