Question: Write in C++! (4 pts) Write a function that takes as an input parameter an array of doubles. The function should print out the address

Write in C++!

(4 pts) Write a function that takes as an input parameter an array of doubles. The function should print out the address of every value in the array. See how this works?

(6 pts) Write a function that takes as input parameters 2 arrays, the size of the first, the size of the second, and two sum integer pointers initialized to 0. The function returns an integer value of 1 if the sum of the integers in the first array is greater than the sum of the integers in the second array, 0 if the sums are equal, and -1 if the second arrays sum is greater than the first. Modify both sum values in the function. Outside the function print out both the arrays and the modified sum values to test whether the function is working correctly.

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!