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

 

Sample Input
Enter Value Of 1st no.:123
Enter Value of 2nd no.:567
Sample Output
Before swapping
Value of 1st no. is 123
Value of 2nd no. is 567
Inside function after swapping
Value of 1st no. is567
Value of 2nd no. is123
Outside function after swapping
Value of 1st no. is567
Value of 2nd no. is123

You may also like...