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++ built on c?

563


total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.

2081


Why do we use pointers in c++?

589


What are the data types in c++?

517


What are move semantics?

674






Explain the advantages of using friend classes.

578


What is the use of typedef?

636


What is constructor in C++?

628


What is ios :: in in c++?

635


What is the use of endl in c++ give an example?

612


What are arrays c++?

609


what is Member Functions in Classes?

618


What are friend classes? What are advantages of using friend classes?

608


What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)

598


What do nonglobal variables default to a) auto b) register c) static

644