Q. 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
πŸ’¬ Discuss
βœ… Correct Answer: (D) this->x

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
186
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
84%
Success Rate