Question: Create a function called swaps () that interchanges the values of the two arguments sent to it. (You will probably want to pass these arguments
Create a function called swaps () that interchanges the values of the two arguments sent to it. (You will probably want to pass these arguments by reference.) Make the function. into a template, so it can be used with all numerical data types (char, int, float, and so on). Write a main () program to exercise the function with several types.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
