Question: C function take two integer arrays and sums them up to a third array, the third array will accept the result as passed in. All
C function take two integer arrays and sums them up to a third array, the third array will accept the result as passed in. All arrays should be the same size.
the program needs to include one function:
void AddArray(int array1[], int array2[], int arraysize, int array3[])
The user will provide two lists of num that will be separated by a # symbol. The length of the array can be arbitrary, but you must make enforce both of the lists that users enter are the same length.
After you parse the input from the user then determine the length of the lists, use dynamically allocated array1array2 and array3 with malloc(), Populate array1 and array2 with value from the input, and use your AddArray function to compute array3.
The program needs to be in C and inclued the main function.
input from user(array1 and array2):
1 2 3 4 5 6 7 8 9 # 9 8 7 6 5 4 3 2 1
output (array3):
10 10 10 10 10 10 10 10 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
