Question: Write a prototype for a function sum_n_avg that has three type double input parameters and two output parameters. The function computes the sum and the
Write a prototype for a function sum_n_avg that has three type double input parameters and two output parameters.
The function computes the sum and the average of its three input arguments and relays its results through two output parameters.
What would be the effect of the following sequence of calls to function order? (Hint: Trace the calls for num1 = 8, num2 = 12, num3 = 10.)
order(&num3, &num2); order(&num2, &num1); order(&num3, &num2);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
