OOPs Concepts on C++ related Questions and Answers


Question :   Which of the following ways are legal to access a class data member using this pointer?
1. this->x
2. this.x
3. *this.x
4. *this-x
Answer :   1 - this->x  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter