Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.1K+ articles
JavaScript
12.2K+ articles
C++
4.3K+ articles
Difference Between
3.6K+ articles
Functions
57+ articles
C++-Static Keyword
12+ articles
C++-Friend function and class
2 posts
Recent Articles
Popular Articles
Difference between Static and Friend Function in C++
Last Updated: 28 December 2022
Static Function: It is basically a member function that can be called even when the object of the class is not initialized. These functions are associated with any object ...
read more
C++
Functions
C++-Static Keyword
C++-Friend function and class
Difference Between
C++ | friend keyword | Question 1
Last Updated: 28 June 2021
Predict the output of following program.[sourcecode language="CPP"]#include iostreamusing namespace std;class A{protected: int x;public: A() {x = 0;} friend void ...
read more
C Language
C++ Quiz
C++-Friend function and class
Friend function and class
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !