Member-dereferencing operator

Explain the meaning of member-dereferencing operator?

E

Expert

Verified

C++ allows accessing class members with the help of pointers. For this purpose it offers three pointer-to-member operators,

a) : :* To declare the pointer to a member of a class.

b) * To access the member by using the object name and a pointer to member.

c) ->* to access the member by using the pointer to an object and a pointer to that member.

   Related Questions in C/C++ Programming

©TutorsGlobe All rights reserved 2022-2023.