C++ program to overload “&&” operator by using friend function

 

Sample Input
Enter a and b:5 7
Enter a and b:6 0
Sample Output
a=1b=0

You may also like...