title: I am struggling with 2D array parameters
body: <p>I have to make user defined functions to randomize the values of a 2d matrix and have another user defined function print it out. I am having problems with it in the parameters and everywhere else is giving me confusing/opposing answers. </p>
  
  <p>I've tried </p>
  
  <pre><code>-int antcolony[SIZE][SIZE]
  -int antcolony[][SIZE]
  -int antcolony[][]
  -int antcolony[SIZE,SIZE]
  </code></pre>
  
  <p>and others I can't remember. Please help</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cstdlib&gt;
  #include &lt;ctime&gt;
   using namespace std;
  
  /*  Function: colonizePhermones
   * Parameters: int Size, const int antColony[][SIZE]
   * Return: n/a
   * Description: randomize the values in antColony
   */
  void colonizePhermones(int SIZE, int antColony[SIZE][SIZE]);
  
  /*  Function: printPhermones
   * Parameters: const int antColony[][SIZE]
   * Return: n/a
   * Description: print the values in antColony
  */
  void printPhermones(int SIZE, int antColony[SIZE][SIZE]);
  
  
  int main() {
      //declaring variables
      const int SIZE = 10;
      int colonyPath[SIZE];
      int antColony[SIZE][SIZE];
      int pathCounter = 0;
      colonyPath[pathCounter]= 0;
  
      //test caling functions
      colonizePhermones(SIZE, antColony[SIZE][SIZE]);
      printPhermones(SIZE, antColony[SIZE][SIZE]);
  
      return 0;
  }
  
  void colonizePhermones(int SIZE, int antColony[SIZE][SIZE]) {
      for (int i = 0; i &lt; SIZE; i++) {
          for (int j = 0; j &lt; SIZE; j++) {
              if ( i == j) {
                  antColony[i][j] = 0;
              }
              else {
                  antColony[i][j] = ((rand() % 19) +1);
              }
          }
      }
  }
  
  void printPhermones(int SIZE, int antColony[SIZE][SIZE]) {
      for (int i = 0; i &lt; SIZE; i++) {
          for (int j = 0; j &lt; SIZE; j++) {
              cout &lt;&lt; antColony[i][j] &lt;&lt; " ";
          }
          cout &lt;&lt; endl;
      }
  }
  </code></pre>
  
  <p>It doesn't do anything but give me error messages. I need it to print the array.</p>