What is the use of the this pointer?

Answer Posted / nashiinformaticssolutions

• It points to the calling object and is used to resolve scope issues, especially with member functions

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 the most common mistake on c++ and oo projects?

737


When you overload member functions, in what ways must they differ?

801


What does count ++ do in c++?

942


How do you find out if a linked-list has an end? (I.e. The list is not a cycle)

815


If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?

1263


What is a class template in c++?

801


Can c++ be faster than c?

805


Can we overload operator in c++?

780


Is it possible for the objects to read and write themselves?

876


Why c++ is called oop?

868


What you know about structures in C++?

823


What is the difference between global int and static int declaration?

638


Is c++ a low level language?

709


How does class accomplish data hiding in c++?

922


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

868