36.9k views
5 votes
After merging two arrays is complete you need to

A.copy the rest of the decond array elements to the temporary array
B.copy the original to temporary array
c.copy the merged array back to the original array
d. copy the rest of the first array elements to the temporary array

1 Answer

5 votes

Answer: C) copy the merged array back to the original array

Step-by-step explanation:

After performing merging of two array then, copy the merge array back to its original array. Merging of two array is done by the process of merge sort. Merging of two array is the similar process of concatenate the two array into the single object.

It basically works on the principle of divide and conquer algorithm. It divide the input value into the two half and then, sorted the accordingly. Then after completion of merging the two array it copy into the original array.

User Robert J
by
5.1k points