What is this pointer in c++?



What is this pointer in c++?..

Answer / hrpynux@gmail.com

Every object in C++ has access to its own address through an important pointer called this pointer. The this pointer is an implicit parameter to all member functions. Therefore, inside a member function, this may be used to refer to the invoking object. ... Only member functions have a this pointer.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is a rooted hierarchy?

0 Answers  


Write a program to add three numbers in C++ utilizing classes.

0 Answers   TCS,


What is the use of c++ programming language in real life?

0 Answers  


How can you force instantiation of a template?

1 Answers   ABC, Amazon,


Explain linked list using c++ with an example?

0 Answers  






How much do c++ programmers make?

0 Answers  


What is private public protected in c++?

0 Answers  


What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal

0 Answers  


what are function pointers?

0 Answers  


How does c++ structure differ from c++ class?

0 Answers  


class Foo { const int x; protected: Foo(int f); ~Foo(); }; Foo f; Referring to the sample code above, why will the class declaration not compile? a) The variable x is const. b) The destructor is protected. c) The destructor is not public. d) The constructor is protected. e) There is no default constructor.

5 Answers   Quark,


if i want cin 12345678910 and cout abcdefghij. so how can i create the program?. example : if i key in 8910 so the answer is ghij.

3 Answers  


Categories