What is a friend function in c++?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a buffer c++?

772


When one must use recursion function? Mention what happens when recursion functions are declared inline?

882


Describe the process of creation and destruction of a derived class object?

860


What are separators in c++?

821


What is split a string in c++?

909


What are member functions used in c++?

777


How do you clear a map in c++?

821


What do you mean by vtable and vptr in c++?

810


Is c or c++ more useful?

808


What are the basic data types used in c++?

767


What is #include ctype h in c++?

873


What are the advantages of inheritance in c++?

864


What is setw manipulator in c++?

805


How can you link a c program with a c function?

790


Differentiate between a template class and class template in c++?

845