C++ Swap Function Swap function is used to interchange two values in variables with each other. For example variable x contains 10 and y contains 20, after swap, x contains 20 and y contains 10. C++ has a inbuild swap function i.e, swap(x,y). Without using this inbuild function we can […]