MCQs > IT & Programming > Computer Science > What is the use of the friend function in C++?

Computer Science MCQs

What is the use of the friend function in C++?

Answer

Correct Answer: It is used to access the private and protected members of the class.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Computer Science Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Computer Science Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it