C++ Friend Question:
Download Questions PDF

List the characteristics of friend functions?

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

Answer:

Friend functions are not a part of the class and are external. This function is a "Friend" of a class. This is to say, it has special privileges to access to the class's private and protected members.

Download C++ Friend Interview Questions And Answers PDF

Previous QuestionNext Question
What is the friend class in C++?What are the C++ friend classes? Explain its uses with an example?