Q83
What is a friend function in C++?
A.
A function which can access all the private, protected and public members of a class
AnswerB.
A function which is not allowed to access any member of any class
C.
A function which is allowed to access public and protected members of a class
D.
A function which is allowed to access only public members of a class
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board