Google News
logo
CPP - Quiz(MCQ)
Which is referred by pointers to member in C++?
A)
Static members of class objects
B)
Non-static members of class objects
C)
Dynamic members of class objects
D)
Referring to whole class

Correct Answer :   Non-static members of class objects


Explanation : We cannot use a pointer to member to point to a static class member because the address of a static member is not associated with any particular object.

Advertisement