title: Conflicting type for a function in C
body: <p>Here is the error message:</p>
  
  <blockquote>
    <p>replace2.c:41: warning: conflicting types for ‘replace’ <br>
    replace2.c:27: note: previous implicit declaration of ‘replace’ was
    here</p>
  </blockquote>
  
  <p>here is my function: </p>
  
  <pre><code>   void replace ( int *a1, int *a2, int n)
     {
      int *p;
      int *p2;
      int sum = 0;
      for (p = a1, p2 = a2; p &lt; a1 + n; p++, p2++)
      {
      sum = (6 + *p) % 10;
      *p2 = sum;
      }
  
   }
  </code></pre>
  
  <p>here is where I called:</p>
  
  <p>please note int_lenght is scanned (input is given by the user), before calling the function.</p>
  
  <pre><code>         int int_lenght;
           array[int_lenght];
           arrayb[int_lenght];
  
           replace(array, arrayb, int_lenght);
  </code></pre>