Question

C++ Question Using Dynamic Arrays

Develop a program that reads two arrays from a user and sorts each array. After that merge the two sorted arrays into an array. Note that the merged array should alsokeep the sorted order properly. In this program, you must use dynamic arrays.

The following shows a sample run of your program:
Enter the size of first array: 5
Enter array content: 33 11 55 66 44
Sorted result: 11 33 44 55 66
Enter the size of second array: 4
Enter array content: 22 88 54 77
Sorted result: 22 54 77 88
Combined sorted array: 11 22 33 44 54 55 66 77 88

Solutions

Expert Solution
No answers


Submit Your Answer