Hi,
I am trying to merge two arrays into one while doing this I am trying to sort and remove duplicates..
For example;
Code:
int a,a1,b,b1,c,c1,d,d1,e,e1;
//the letters are int inputs from the user
array1[size1]={a,b,c,d,e};
array2[size2]={a1,b1,c1,d1,e1};
size = size1+size2;
array3[size]={/*here the int will be sorted and there will be no duplicates*/}
so if the user enters;
size1 = 5;
size2 = 5;
array1[5]=1,1,2,3,5
array2[5]=4,5,6,7,8
array3[10] should be array3[10]=1,2,3,4,5,6,7,8,-,-
The point where I am stuck at is checking for the identical members and printing '-' for the empty parts in the array..
Thanks in advance..