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

c++  c++ 11) (10 points) Write a function template for a function

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

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!