(a) Write a function that receive two sorted arrays of integers and their sizes. Suppose the arrays are sorted in an increasing order. The function must merge the two arrays and return the merged...


(a) Write a function that receive two sorted arrays of integers and their sizes. Suppose the arrays are sorted in an increasing order. The function must merge the two arrays and return the merged sorted result. Use the following function header.


Int *  mergeArrays (int * array1, int size1, int* array2, int size2)


(b) Write a main function to test the mergeArrays() function defined in part (a). In the main function create two arrays, not necessarily the same size. Print the arrays, then pass them as arguments to the mergeArrays() function and print the returned result.



Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here