Question: c++ 11) (10 points) Write a function template for a function named sundiff taking two arguments x and y After the function returns, x should
11) (10 points) Write a function template for a function named sundiff taking two arguments x and y After the function returns, x should become x-y and y should become x+y. The function does not return any value. Assume that both arguments are of the same type and that the type can only be int, float or double. It should be possible to call the function as follows: int a 7 int b 4 sumdiff (a,b) after which the value of a should be 3 and the value of b should be 11
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
