What is the use of the this pointer?

Answer Posted / hr@tgksolutions.com

• 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 does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal

957


When should we use multiple inheritance?

835


What are the advantages of c++?

1361


Explain the auto storage classes in c++.

857


What is microsoft c++ redistributable?

818


What is abstraction in c++ with example?

810


What is new in c++?

900


Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?

2259


Is c++ a good first language to learn?

793


What operators can you overload in c++?

805


What is a buffer c++?

807


What is the v-ptr?

942


Explain the differences between private, public and protected and give examples.

801


Please explain class & object in c++?

820


Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?

825