title: Merge two int array from one array without duplication
body: <p>I am trying to merge two arrays into one without duplication but my code does not work correctly. Can anyone suggest how to fix this problem?</p>
  
  <pre><code>void unify(int set_A[], int size_A, int set_B[], int size_B, int set_C[], int size_C)
  {
    int i,j,count=0,indx=size_A;
    for(i=0;i&lt;size_A;i++)
    {
      set_C[i]=set_A[i];
    }
  
    for(i=0;i&lt;size_B;i++)
    {
      for(j=0;j&lt;size_A;j++)
      {
        if (set_B[i]!=set_C[j])
          count++;
      }
      if (count==size_A){
        set_C[indx]=set_B[i];
        indx++;
      }
    }
  
  }
  </code></pre>
  
  <p>Example:</p>
  
  <pre><code>a{3 7 13 8 11 1 4}
  b{5 7 1 2 3}
  
  a_b{3 7 13 8 11 1 4 5 0 0 0 0 0..}
  </code></pre>