title: Segmentation Fault When Calling Function
body: <p>I'm trying to write a code that will define an array in main, populate that array with random floats in fillArray, and then print the array in printArray. Here is what I have so far.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  float fillArray (float array[7][5]);
  float printArray (float array[7][5]);
  
  int main ()
  {
    float array[7][5];
    fillArray (array);
    printArray (array);
  }
  
  float fillArray (float array[7][5])
  {
    int row, column;
    for (row = 0; row &lt; 7; row++)
      {
        for (column = 0; row &lt; 5; column++)
          {
            array[row][column] = (float) rand () / (float) RAND_MAX;
          }
      }
  }
  
  float printArray (float array[7][5])
  {
    int Row, Column;
    for (Row = 0; Row &lt; 7; Row++)
      {
        for (Column = 0; Column &lt; 5; Column++)
          {
            printf ("%4.2f ", array[Row][Column]);
          }
        printf ("\n");
      }
  }
  </code></pre>
  
  <p>which is producing a segmentation fault. I've looked for undefined variables or unallocated memory but couldn't find any, and every other problem posted that I could find dealt specifically with undefined variables (unless I've missed one, and in that case I am extremely sorry). If I package the whole code in main, it works perfectly. I am just having issues with the segmentation fault.</p>
  
  <p>Thanks in advance for the help!</p>