Answers

2014-03-28T21:06:30+05:30
If a function is declared has friend in c++ then the function and its members can be accessed by any class in a program.
0
2014-03-30T12:05:25+05:30
A friend function is used for accessing the non-public members of a class. A class can allow non-member functions and other classes to access its own private data, by making them friends. Thus, a friend function is an ordinary function or a member of another class.
0