C++ Friend Question:
Download Questions PDF

Pick out the correct statement.
a) A friend function may be a member of another class.
b) A friend function may not be a member of another class.
c) A friend function may or may not be a member of another class.
d) None of the mentioned

C++ Friend Interview Question
C++ Friend Interview Question

Answer:

c) A friend function may or may not be a member of another class.

Download C++ Friend Interview Questions And Answers PDF

Previous QuestionNext Question
Where does keyword 'friend' should be placed?
a) function declaration
b) function definition
c) main function
d) None of the mentioned
What is the friend class in C++?