title: SIGXCPU error in C program
body: <p>The following program is not producing output.  It enters the for loop and takes one value (via <code>scanf</code>) but after that the code block stops execution. Ideone (an online compiler and debugging tool) says that SIGXCPU signal is generated. </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  long fact(int);
  int z(int);
  
  int main()
  {
      int i, n; 
      scanf("%d",&amp;n); 
      int a[10];long b[10];
      int c[10];
      for(i=0;i&lt;n;i++)
      {
          scanf("%d", &amp;a[i]);
          b[i]=fact(a[i]);
          c[i]=z(b[i]);
      }
      printf("\n");
      for(i=0; i&lt;n; i++)
      {
          printf("%d", c[i]);
      }
      return 0;
  }
  
  long fact(int m)
  {
      if (m==1) return 1;
      else return (m*fact(m-1));
  }
  
  int z (int s)
  {
      int c=0, temp;
      temp=s%10;
      if(temp!=0) return c;
      else
      {
          c++; z(temp);
      }
  }
  </code></pre>
  
  <p>What does the SIGXCPU signal mean?</p>