Question: C++ PROGRAMMING C) In this part you will write a function that takes in two arrays that could be of different sizes. The function will
C++ PROGRAMMING
C) In this part you will write a function that takes in two arrays that could be of different sizes. The function will then create a new array that will store in each position of it, the sum of the values in both of the other arrays. Note that if an array no longer has an element at that position, then its value should be 0 in this sum. Display the two arrays before the function call, after the function call and also display the calculated array in the main body. You should use as input to calc_sum the two arrays created by split_up_array in the previous examples.
Required functions: int calc_sum(int *, int, int *, int, int *&, int &); void print_array(int[],int);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
