Question: C language,,, Please help me with the 1-D array with Functions .. DO NOT USE FLOAT Task # 1: Write a function maxTwoArrays that takes
Task # 1: Write a function maxTwoArrays that takes 2 arrays of integer values and their size (same size) and returns an array maxTwo such that: maxTwoli]-maximum (ar [i],ar2[i]) Test your function in a complete C program. Your function must be general, t must work for any valid array size Example: If the passed arrayl is -2,3, 15, 21, 17, 20.6 and passed array2 is 5,17,8,25, 15, 19,9; then the returned array is5, 17, 15, 25, 17, 20,9 sample run Enter array size: 7 Enter 7 values for array1: 2 3 15 21 17 20 -6 Enter 7 values for array2: 5 17 8 25 15 19 9 Array max 5 17 15 25 17 20 9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
