Wednesday, 26 June 2013

when does this pointer gets created, what is the type of this pointer

The this pointer gets created when a member function (non-static) of a class is called.

if sample is the name of the class  whose function is called through object, then the type of this
pointer would be
                 sample *const this;
                



0 comments:

Post a Comment