Vidyalelo
C++ Programming · Q92

Introduction to C++

Programming · C++ Programming · question 92

Q92

Which of the following is correct about this pointer in C++?

A.
this pointer is passed as a hidden argument in all the functions of a class
B.
this pointer is passed as a hidden argument in all non-static functions of a class
Answer
C.
this pointer is passed as a hidden argument in all static functions of a class
D.
this pointer is passed as a hidden argument in all static variables of a class

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board