πŸ“Š C++
Q. What is the purpose of the 'this' pointer in C++?
  • (A) It points to the current object of a class.
  • (B) It is used to access global variables.
  • (C) It is used to define static functions.
  • (D) It is used for memory allocation.
πŸ’¬ Discuss
βœ… Correct Answer: (A) It points to the current object of a class.

Explanation: In C++, the 'this' pointer points to the current object of a class.

Explanation by: Vijay Sangwan
In C++, the 'this' pointer points to the current object of a class.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
168
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vijay Sangwan
Publisher
πŸ“ˆ
92%
Success Rate