C++ program for Swapping of Two Numbers using Call by Reference

C++ program for Swapping of Two Numbers using Call by Reference

Here, you will get a program code of swapping of two numbers using call by reference in c++ programming language.

Program:

Output:

Number Before Swapping in main function
a = 10
b = 20
Number After Swapping in swap function
a = 20
b = 10
Number After Swapping in main function
a = 20
b = 10

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top