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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started