title: struct array length error
body: <p>I'm a beginner in C and after long time and effort I finished my 1500 rows code in C. It was running perfectly and producing results as expected, but when I tried to add more input than the tests I faced a breakdown.</p>
  
  <p>More specifically, I managed to find the source of the problem in the struct array.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;string.h&gt;
  #include &lt;windows.h&gt;
  
  #define ROWS 5000
  #define MAXLOGGERS 26
  
  struct data
      {
          int day;
          int month;
          int year;
          int hour;
          int minute;
          int second;
          float value;
          float temp;
          float hum;
      };  
  
  int main()
  {
      printf("Enter the number of loggers that you want to import: ");
      int n = 10;
  
      while (n &gt; MAXLOGGERS)
      {
          printf("You can input data from maximum %d loggers: ", MAXLOGGERS);
          scanf("%d", &amp;n);
      }
  
      struct data mydata[n+1][ROWS];
  
      printf("\n\nSuccess!!\n");
  }
  </code></pre>
  
  <p>Now when I use n = 10 or less, the program finishes as expected. When I change n to 11 or more it crashes.</p>
  
  <p>I'm suspecting something is wrong with the declaration of the struct array, but I can really not figure it out.</p>
  
  <p>Any help would be more than welcome!
  Thanx (:</p>