1.

Which of the following operator is used with this pointer to access members of a class?(a) .(b) !(c) ->(d) ~This question was posed to me in my homework.The origin of the question is C++ Concepts in portion Basics Concepts of C++ of C++

Answer»

The correct option is (C) ->

Easy explanation - this pointer is a TYPE of pointer and as we know pointer object USES the arrow(->) operator to access the MEMBERS of the CLASS, therefore, this pointer uses -> operator.



Discussion

No Comment Found

Related InterviewSolutions