Question: USING C AND COMMENTS! Concatenate Array Create a function that takes in two arrays and their respective sizes as inputs and concatenates the second array

USING C AND COMMENTS!
Concatenate Array Create a function that takes in two arrays and their respective sizes as inputs and concatenates the second array onto the end of the first array. In particular, you'll need to create a new array that's size of the two original arrays added together. Make sure to update the first array to hold the address of the newly concatenated array as well as its size variable to hold the new size Write a program that gets two array sizes from the user, makes an array of each size, filling each array with random integers less than 100, prints the arrays, then concatenates the arrays, and prints the resulting array. Use the following function header for the concatenate function void concat_array(int arrayl, int * sizel, int * array2, int size2) Sample Run Enter arrayl Size: 2 arrayl (0x7fb423c02780) array [0] 91 array [1] 39 Enter array2 Size: 3 array2 (0x7fb423c02790): array [0] 68 array [1] = 41 array [2] 77 arrayl (0x7fb423c027a0) array [0] = 91 array[1] = 39 array [2] 68 array [3] 41 array [4] 77
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
