Passing values by reference
The swap doesn’t happen! Why?
C/C++ passes parameters by value, i.e. a copy of the variable is passed to the function, not the actual value itself.
C++ can pass the actual variables themselves - known as passing parameters by reference.
To pass a parameter by reference we place & between the parameters type name and the parameter tag.