(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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here