If a function is friend of a class, which one of the following is wrong?
Show answerHide answer
Correct answer: (C) Friend functions are members of a class
Explanation
A friend function of a class is defined outside that class's scope but has the right to access all private and protected members of the class. Even though the prototypes for friend functions appear in the class definition, friends are not member functions.