Question
Where does keyword ‘friend’ should be placed?
Answer: Option A
Was this answer helpful ?
The keyword friend is placed only in the function declaration of the friend function and not in
the function definition because it is used toaccess the member of a class.
Was this answer helpful ?
More Questions on This Topic :
Question 1.
Pick out the correct statement.
....
Question 7.
What is the syntax of friend function?
....
Submit Solution