Where in the parameter list is the implicit *this is added?

Where in the parameter list is the implicit *this is added?
A. Right most parameter
B. Anywhere in parameter list
C. Left most parameter
D. Not added to parameter list
 
Answer: c
Explanation: The left operand is passed implicitly by the compiler to the member function. But this is done, when the compiler adds the calling object as *this to the parameter list. It is always added as the left most parameter, i.e. the first parameter of the function.
 

Tìm kiếm

Back
Top