Write a C Program for this question Write a function called mergeArrays. It should accept three integer arrays: A, B and C, and two integers m and n representing the sizes of the first two arrays. It...


Write a
C Program
for this question



  1. Write a function called mergeArrays. It should accept three integer arrays: A, B and C, and two integers m and n representing the sizes of the first two arrays. It can be assumed that the size of C is m+n. Arrays A and B contains integers that are already sorted in the ascending order (i.e. increasing order). Your function must combine all the numbers in A and B and store them C in such a way that C is also sorted in the ascending order. Here is an example to clarify the requirements. In this case, the sizes of A and B are 6 and 4 respectively.



SAMPLE



  • A : 0 4 5 5 7 9

  • B: -1 0 3 6

  • C: -1 0 0 3 4 5 5 6 7 9



  1.  Then you have to separate odd and even integers in two separate arrays respectively.



Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here