CASE 1:
Given two numbers a & b, swap these two numbers using the friend function of C++.
Examples:
Input : a = 5, b = 9
Output : a = 9, b = 5
Input : a = 4, b = 6
Output : a= 6, b = 4
Charvik provides an education and shares Knowledge to reach your goals.
CASE 1:
Given two numbers a & b, swap these two numbers using the friend function of C++.
Examples:
Input : a = 5, b = 9
Output : a = 9, b = 5
Input : a = 4, b = 6
Output : a= 6, b = 4
Comments