Zebra0.com

cppExchanging two values

Exchanging two values

One place where it is useful to use pass by reference is when we need to swap, or exchange the values of two variables.