Quote Originally Posted by Salem View Post
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.
That's weird... I ran the test inputs you posted and this the output I got
Removing duplicate elements when merging two arrays-output2-png

I'm a bit confused on what I need to do to make it run properly. Do you mind explaining to me what I should do? I'm fairly new to C programming.