title: Program received signal SIGSEGV, Segmentation fault. # C LANGUAGE#
body: <p>i have a Program received signal SIGSEGV, Segmentation fault. and i really dunno how to fix it , it says thats the problem is the line of &quot;scanf ( &quot; %s &quot;,&amp; t[i].poste);&quot;</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  typedef struct { int d,m,y; } dtype ;
  
  typedef struct { char nom[10]; char prenom[10] ; char poste[00]; dtype date ; } LEM ;
  
  int main()
  {
      int n,i,j;
  
      printf(&quot;Liste des employes\n&quot;);
      printf(&quot;\n nombre d'employes : &quot;);
      scanf(&quot;%d&quot;,&amp;n);
  
      LEM t[n];
  
      for(i=1;i&lt;=n;i++)
      {
          printf(&quot;\nemploye number %d :&quot;,i);
  
          printf(&quot;\n nom : &quot;);
          scanf(&quot;%s&quot;,&amp;t[i].nom);
  
          printf(&quot;\n prenom : &quot;);
          scanf(&quot;%s&quot;,&amp;t[i].prenom);
  
          printf(&quot;\n poste : &quot;);
          scanf(&quot;%s&quot;,&amp;t[i].poste);
  
          printf(&quot;\n date de recrutement : &quot;);
  
          printf(&quot;\n day : &quot;);
          scanf(&quot;%d&quot;,&amp;t[i].date.d);
  
          printf(&quot;\n month : &quot;);
          scanf(&quot;%d&quot;,&amp;t[i].date.m);
  
          printf(&quot;\n year : &quot;);
          scanf(&quot;%d&quot;,&amp;t[i].date.y);
  
      }
  
      for(i=1;i&lt;=n;i++)
      {
          printf(&quot;nom : %s \t&quot;,t[i].nom);
          printf(&quot;prenom : %s \t&quot;,t[i].prenom);
          printf(&quot;poste : %s \t&quot;,t[i].poste);
          printf(&quot;date de rec : %d/%d/%d \t&quot;,t[i].date.d , t[i].date.m ,t[i].date.y);
  
      }
  }
  </code></pre>