Programming Languages C++ Objective
Mar 19, 2013

Which of the following ways are legal to access a class data member using this pointer?

Choose the correct answer:
A) this->x
B) this.x
C) *this.x
D) *this-x
Detailed Explanation

Option A is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback