1.

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

A. <i class="cpp-code">this-&gt;x</i>
B. <i class="cpp-code">this.x</i>
C. <i class="cpp-code">*this.x</i>
D. <i class="cpp-code">*this-x</i>
Answer» B. <i class="cpp-code">this.x</i>


Discussion

No Comment Found

Related MCQs