[Solved] Function that receives two parameters (a,and b) by value and has two more parameters

30 $

SKU: [Solved] Function that receives two parameters (a,and b) by value and has two more parameters Category: Tag:

5/5 – (1 vote)

Write code for a function that receives two parameters (a,and b) by value and has two more parameters (c and d) by reference. All parameters are double.The function works by assigning c to (a/b) and assigning d to (a*b).

From main, use scanf to get two numbers, then call the function, and then display both returned values to the output in a printf statement.

2. After part 1 is completed, write code to get 20 integer numbers from the user. The code then displays how many of those numbers are above the numbers average. To get proper credit you must follow these steps:

a. write a for loop to fill the array with numbers from the user. Use a pointer

b. use an index to pass through all array elements to calculate the average in another loop.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] Function that receives two parameters (a,and b) by value and has two more parameters
30 $