C++ Friend Question:
Download Job Interview Questions and Answers 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
Answer:
c) A friend function may or may not be a member of another class.
Download C++ Friend Interview Questions And Answers
PDF
Previous Question | Next 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++? |