title: need help in solving segmentation fault in C
body: <p>i am currently having issues with the segmentation fault. this is my project for school and i keep on getting the segmentation fault i dont know why. i was tasked to produce a program to read in the value from the txt file and display it in C.</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  int main()
  {
      float training_input[90][8],training_output[90][1],testing_input[10][8],testing_output[10][1];
      int i;
      FILE *fpointer;
      fpointer= fopen(&quot;project.txt&quot;,&quot;r&quot;);
      for (i=0;i &lt;=90; i++ )
      {
          fscanf(fpointer, &quot;%f, %f, %f, %f, %f, %f, %f, %f, %f, %f&quot;,&amp;training_input[i][0],&amp;training_input[i][1],&amp;training_input[i][2],&amp;training_input[i][3],&amp;training_input[i][4],&amp;training_input[i][5],&amp;training_input[i][6],&amp;training_input[i][7],&amp;training_input[i][8],&amp;training_output[i][9]);
          printf(&quot;\n %f,%f,%f,%f,%f,%f,%f,%f,%f,%f &quot;,training_input[i][0],training_input[i][1],training_input[i][2],training_input[i][3],training_input[i][4],training_input[i][5],training_input[i][6],training_input[i][7],training_input[i][8],training_output[i][9]);
      }
      for (i=91; 1&lt;=101; i++)
      {
          fscanf(fpointer, &quot;%f, %f, %f, %f, %f, %f, %f, %f, %f, %f, &quot;,&amp;testing_input[i][0],&amp;testing_input[i][1],&amp;testing_input[i][2],&amp;testing_input[i][3],&amp;testing_input[i][4],&amp;testing_input[i][5],&amp;testing_input[i][6],&amp;testing_input[i][7],&amp;testing_input[i][8],&amp;testing_output[i][9]);
          printf(&quot;\n %f,%f,%f,%f,%f,%f,%f,%f,%f, %f, &quot;,testing_input[i][0],testing_input[i][1],testing_input[i][2],testing_input[i][3],testing_input[i][4],testing_input[i][5],testing_input[i][6],testing_input[i][7],testing_input[i][8],testing_output[i][9]);
      }
      fclose (fpointer);
      return 0;
  </code></pre>
  <p>the segmentation fault always occur in the fscanf and printf.</p>