...

/

Exercise 2: Swapping Values

Exercise 2: Swapping Values

Let's generalize the function of swapping two values by using templates.

Problem Statement

In the code widget below, two functions, both called, swap_values are declared. Oneswaps values for int type inputs and the other for double type. ...