Friend function does not have "this" pointer associated with it - Functions

Q.  A friend function does not have 'this' pointer associated with it.
- Published on 17 Jul 15

a. True
b. False

ANSWER: True
 

    Discussion

  • ramesh   -Posted on 09 Oct 15
    Friend functions do not have a this pointer associated with it, because friends are not members of a class. Only member functions have a this pointer.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)