C++ program to overload ‘!’ operator using friend function

 

Sample Output
Before not operation a=5
After not operation a=0

You may also like...