Question: The answer has to be in (C++) 2) 2 Write a code snippet of a function that swaps the values of two integers x and
The answer has to be in (C++)

2) 2 Write a code snippet of a function that swaps the values of two integers x and y [3 marks] 3) Modify the program code in 1) above to into a function template to accept variables of all data types [4 marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
