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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!