title: C code core dumped
body: <pre><code>#include&lt;stdio.h&gt;
  int main(){
  int i,j,c[10],max=0,min=100;
  char s[10][100];
  
  for(i=0;i&lt;10;i++)
      scanf("%s",&amp;s[i][i*10]);
      c[i]=0;
  
  for(i=0;i&lt;10;i++)
      for(j=0;s[i][j]!="\0";j++)
          c[i]++;
  for(i=0;i&lt;10;i++){
      if(c[i]&gt;max)
          max=c[i];
      else if(c[i]&lt;max)
          min=c[i];
          }
  printf("%d",max-min);
  
  return(0);
  }
  </code></pre>
  
  <p>This code should get 10 names from user and find each name's length and minus the shortest name from longest and the code has compiled correctly but when i run it, it says core dumped why??</p>