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

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 Programming Questions!