Question: Coding Language : C++ DO NOT COPY FROM OTHER CHEGG QUESTIONS THOSE ARE DIFFERENT!! Use the given main to slove the question, but do not
Coding Language : C++
DO NOT COPY FROM OTHER CHEGG QUESTIONS THOSE ARE DIFFERENT!!
Use the given main to slove the question, but do not edit the main method need to write the concatenate method.


Write a function named "concatenate" that copies the cells of one array into a larger array, and then copies the cells of another array into the larger array just beyond the contents of the first array. The contents of the cells will be integers. The arguments will be as follows: a. the first array that will be copied; b. the number of cells that will be copied from the first array; c. the second array that will be copied; d. the number of cells that will be copied from the second array; The function return the pointer to array that concatenates the two inputted arrays. The function should not alter the contents of the first two arrays. To take an example, if the first two arrays passed to the function look like this: then, provided the size of the large array is 11 , the large array should look like this when the function returns
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
