What is a friend function in c++?

Answers were Sorted based on User's Feedback



What is a friend function in c++?..

Answer / nashiinformaticssolutions

• A non-member function that has access to the private and protected members of a class. Declared using the friend keyword.

Is This Answer Correct ?    0 Yes 0 No

What is a friend function in c++?..

Answer / hr@tgksolutions.com

• A non-member function that has access to the private and protected members of a class. Declared using the friend keyword.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

How does a C++ structure differ from a C++ class?

0 Answers   NIIT,


What is setfill c++?

0 Answers  


What is std :: endl?

0 Answers  


What is an orthogonal base class in c++?

0 Answers  


What is the difference between while and do while loop?

0 Answers  


C++ program output? Explain output of this program. #include <iostream> using std::cout; using std::cin; int main() {   cout<<cout<<' ';   cout<<cin;   return 0; } It prints some address in hexadecimal. what is it?

1 Answers  


How do you invoke a base member function from a derived class in which you have not overridden that function?

0 Answers  


What is a pointer with example?

0 Answers  


What is a manipulator in c++?

0 Answers  


Which algorithm do you like the most? Why?

2 Answers   Google,


What is static function and static class?

4 Answers   HCL,


What is the best way to declare and define global variables?

0 Answers  


Categories