create a function called merge(int arr1[50], int arr2[50], intres[100]). It will
ID: 3609448 • Letter: C
Question
create a function called merge(int arr1[50], int arr2[50], intres[100]). It will take place all the numbers from arr1 andarr2 into res. res consists of the first number from arr1,then the first number from arr2, then the second number from arr1,then the second number from arr2 and so on.e.g. if arr1 is [1,2,3] and arr2 is [4,5,6], then res will be[1,4,2,5,3,6]
create a function called merge(int arr1[50], int arr2[50], intres[100]). It will take place all the numbers from arr1 andarr2 into res. res consists of the first number from arr1,then the first number from arr2, then the second number from arr1,then the second number from arr2 and so on.
e.g. if arr1 is [1,2,3] and arr2 is [4,5,6], then res will be[1,4,2,5,3,6]
Explanation / Answer
void merge(int arr1[50], int arr2[50], int res[100]) { int i; for(i=0;iRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.