Question: **Please use C++** 4. (5 points) Write a function int MergeArrays (int *a, int *b, int sizea, int sizeb) merge them into one sorted array
**Please use C++**

4. (5 points) Write a function int MergeArrays (int *a, int *b, int sizea, int sizeb) merge them into one sorted array and returns the pointer to the merged array. (HINT: use dynamic memory allocation to create the new array) Write a main function which demonstrates MergeArrays by calling it on two sorted arrays and then printing the returned array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
