A program to merge two integer arrays into a third array with alternate elements from the first and second array respectively

computer science

Description

A program to merge two integer arrays into a third array with alternate elements from the first and second array respectively. Your program should do the following: a. Input size of 2 arrays b. Input the array elements c. Write a loop structure to copy elements into a third array in an alternate fashion d. Print the merged array Note: If one array is extinguished, continue to copy the remaining elements of the other array Example: size1 = 3 size2 = 4 array1 = {2,3,5}; array2 = {1,8,3,0}; array3 = {2,1,3,8,5,3,0} output 2138530


Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.