To create a pointer to a private data member of a class, outside the class, which among the following is correct?
(a) Return the address of the private data member using a member function
(b) Access the private member using a pointer outside class
(c) Declare the member as pointer inside the class
(d) Not possible to create pointer to a private member
I had been asked this question in an international level competition.
This intriguing question originated from Data Members in section Class Members & Types of Object Oriented Programming