-
Where does keyword ‘friend’ should be placed?
-
- function definition
- main function
- function declaration
- All of above
- None of these
Correct Option: C
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.