What is the this pointer?



What is the this pointer?..

Answer / Sumit Chansouliya

The 'this' pointer in C++ is a pointer that is automatically passed to each nonstatic member function when it is called. It points to the object for which the function was called.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

what is the diff b/n c and c++ a. dynamic scoping b. nested switching c. declaration of variables in any code block d. separation of compilation and linking

2 Answers   Hughes,


What is the difference between method and message?

5 Answers   HP,


Define Virtual function in C++.

1 Answers   iNautix,


What are the effects after calling the delete this operator ?

1 Answers  


What is private public protected in c++?

1 Answers  


Is there structure in c++?

1 Answers  


What is buffering in c++?

1 Answers  


What are virtual functions and what is its use?

1 Answers  


What is the difference between public, private, and protected access?

1 Answers  


give me an example for testing a program showing the test path .show how the test is important and complex.

1 Answers   TCS,


Name the operators that cannot be overloaded in C++?

1 Answers   Fidelity,


What is a binary file? List the merits and demerits of the binary file usagein C++.

1 Answers  


Categories