Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.

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

Question: Which of the following ways are legal to access a class data member using this pointer?
[A]. this->x
[B]. this.x[C]. *this.x
[D]. *this-x

Answer: Option A