C++ Program using friend function

In this program, You will learn how to implement friend function in C++. friend void display(); Example: How to implement friend function in C++. #include<iostream> using namespace std; class Test…

Continue Reading C++ Program using friend function

C++ Program using static variable

In this program, you will learn how to implement static variables in C++. int a; static int b; Example: How to implement static variables in C++. #include<iostream> using namespace std;…

Continue Reading C++ Program using static variable