Q. Which of the following correctly describes a friend function in C++?
β
Correct Answer: (B)
A function that can access private members of a class
Explanation: A friend function is not a member of a class but has access to its private and protected members.