IBM explains C++ pass by reference in the example below (source included).
If I changed void swapnum... to void swapnum(int i, int j), wou
void swapnum...
void swapnum(int i, int j)
Yes. The '&' operator specifies that the parameter should point to the memory address of what was passed in.
By removing this operator, a copy of the object is made and passed to the function.