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

Is c++ primer good for beginners?

676


List the types of polymorphism in c++?

725


Which sort does c++ use?

654


Is java a c++?

656


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?

1115






How can you tell what shell you are running on unix system?

735


What is the exit function in c++?

628


which of the following is not an secondary constant a) array b) real c) union

1374


Which c++ compiler is best?

689


Implement stack operations with pointers with appropriate exception checks.

653


Are php strings immutable?

672


What is prototype for that c string function?

774


What do you mean by inheritance in c++? Explain its types.

708


Is it possible for a member function to use delete this?

654


Define stacks. Provide an example where they are useful.

679