this keyword

Home Forums C Programming this keyword

This topic contains 1 reply, has 2 voices, and was last updated by  sameena 11 years, 10 months ago.

  • Author
    Posts
  • #1899

    VIGNESH
    Member

    can anyone please tell me the difference between “this” keyword and “VPTR”???
    Happy Programming,
    Genetic.

  • #3143

    sameena
    Member

    Hi

    You should find the information you need here:-
    http://www.codeguru.com/cpp/tic/tic_c.shtml

    The this pointer indentifies the object instance that called a function whereas VPTR seems to be similar in construction but applies to virtual functions and has to do with binding…

    Good luck on that one :)
    MegaC

You must be logged in to reply to this topic.

0 Shares
Share
+1
Tweet
Share
Stumble