What is this pointer in c++?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is implicit pointer in c++?

799


What is c++ map?

754


Write a program which employs Recursion

985


How come you find out if a linked-list is a cycle or not?

777


Explain this pointer?

775


What flag means?

703


Why #include is used?

799


What is the difference between a reference and a pointer?

817


Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list

801


What is a friend function in c++?

1020


What is vector string in c++?

800


What is pointer to array in c++?

809


What is abstraction in c++?

935


Is there any function that can skip certain number of characters present in the input stream?

787


Can c++ be faster than c?

784