Texts: Write several functions swapValues() that swap values.
Function overloading.
You should write several functions for swapValues().
void swapValues(int &n1, int &n2);
Swap two values with each other.
void swapValues(int &n1, int &n2, int &n3);
Swapping values in a circular order involves exchanging the positions of three variables in a cyclic manner.
n1 will be n2.
n2 will be n3.
n3 will be n1.
void swapValues(int &n1, int &n2, int &n3, int &n4);
Swap all values in reverse order.
n1 will be n4.
n2 will be n3.
n3 will be n2.
n4 will be n1.
Make an essay on the purpose of function overloading and reference variables.
void swapValues(int &n1, int &n2, int &n3);
void swapValues(int &n1, int &n2, int &n3);
void swapValues(int &n1, int &n2, int &n3, int &n4); C++ PROGRAM.