title: C conflicting types for typedef struct
body: <p>I have a problem my C program. I am new C Programming. I coded something and here my error and warning.</p>
  
  <pre><code>[Warning] conflicting types for 'setFirstValuesForSample' [enabled by default]
  
  [Error] previous implicit declaration of 'setFirstValuesForSample' was here       
  </code></pre>
  
  <p>What am I missing when calling my function ?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
      #include &lt;stdlib.h&gt;
      #define MAX_TERIM_SAY 101
      #define KARSILASTIR(x,y) (((x)&lt;(y))?-1:((x)==(y))?0:1)
      typedef struct{
          int sat;//satır bilgisi
          int kol;//sütun bilgisi
          int deger;
      } terim;
  
      int main(int argc, char *argv[]) {
          terim a[MAX_TERIM_SAY],b[MAX_TERIM_SAY],c[MAX_TERIM_SAY];
          setFirstValuesForSample(a[MAX_TERIM_SAY],b[MAX_TERIM_SAY]);
          return 0;
      }
      void setFirstValuesForSample(terim a[],terim b[])
      {
          a[0].sat = 5;
          a[0].kol = 5;
          a[0].deger = 4;
      }
  </code></pre>