What is a friend function in c++?
Answers were Sorted based on User's Feedback
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 |
• 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 |
How does a C++ structure differ from a C++ class?
What is setfill c++?
What is std :: endl?
What is an orthogonal base class in c++?
What is the difference between while and do while loop?
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?
How do you invoke a base member function from a derived class in which you have not overridden that function?
What is a pointer with example?
What is a manipulator in c++?
Which algorithm do you like the most? Why?
What is static function and static class?
What is the best way to declare and define global variables?