C++ program to swap two numbers by call by reference.

 

Sample Input
Enter Value Of A:127
Enter Value of B:445
Sample Output
Before swapping
Value of A is 127
Value of B is 445
Inside function after swapping
Value of A is445
Value of B is127
Outside function a0fter swapping
Value of A is445
Value of B is127

You may also like...