1.

Which operator a pointer object of a class uses to access its data members and member functions?(a) .(b) ->(c) :(d) ::I have been asked this question during an interview.My query is from Classes topic in division Source Files, Classes and Operator Overloading in C++ of C++

Answer»

Correct option is (B) ->

For explanation: ->(ARROW operator) is USED by a pointer object to ACCESS members of its class.



Discussion

No Comment Found

Related InterviewSolutions