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++**

**Please use C++** 4. (5 points) Write a function int MergeArrays (int

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!