It didn't work with my test case.
Code:
$ ./a.out
Enter the length of array 1: 5
Enter the elements of the array: 1 3 5 7 9
Enter the length of the array 2: 6
Enter the elements of the array: 10 8 6 4 2 1
Output array: 1 3 5 7 9 $
There's a whole bunch of even numbers missing.