Q. What is the use of this pointer?
-
(A)
When local variable’s name is same as member’s name, we can access member using this pointer.
-
(B)
To return reference to the calling object
-
(C)
Can be used for chained function calls on an object
-
(D)
All of the above
โ
Correct Answer: (D)
All of the above