title: Getting segmentation fault in C
body: <p>In my C code, I am getting a segmentation fault that I can't figure out. Does anyone know what the problem is?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;time.h&gt;   
  
  #define MAX(x, y) (((x) &gt; (y)) ? (x) : (y))
  #define MIN(x, y) (((x) &lt; (y)) ? (x) : (y))
  
  int main() {    
      printf("a");
      time_t start_t, end_t;
      double diff_t;
      time(&amp;start_t);
  
      int width = 440;
      int height = 280;
      int w = 25;
      int b = 15;
      int oo = 5;
      int pheight = 70;
  
      int m1, m2, m3, m4;
      double *points;
      printf("a");
      int data[2][width][height][width][height][height];
      printf("b");
      int side, ballx, bally, oballx, obally, py;
  
      for (side = 0; side &lt; 2; side++) {
          for (ballx = w; ballx &lt; width - w - b; ballx++) {
              for (bally = 0; bally &lt; height - b; bally++) {
                  if (side == 1) {
                      m1 = MAX(w, ballx - oo);
                      m2 = MIN(width - w - b, ballx);
                  } else {
                      m1 = MAX(w, ballx);
                      m2 = MIN(width - w - b, ballx + oo);
                  }
                  for (oballx = m1; oballx &lt; m2; oballx++) {
                      m3 = MAX(0, bally - oo);
                      m4 = MIN(height - b, bally + oo);
                      for (obally = m3; obally &lt; m4; obally++) {
                          for (py = 0; py &lt; height - pheight; py++) {
                              time(&amp;end_t);
                              diff_t = difftime(end_t, start_t);
                              printf("side %d ballx %d bally %d oballx %d obally %d py %d time %f",
                                     side, ballx, bally, oballx, obally, py, diff_t);
                          }
                      }
                  }
              }
          }
      }
      return 0;
  }
  </code></pre>