title: How do I pass a pointer to a multidimensional array in C?
body: <p>I have a two dimensional array that works with a function:</p>
  
  <pre><code>bool matrix[rows][cols];
  func(rows, cols, matrix);
  
  void func(int rows, int cols, bool matrix[rows][cols]) {
      //...
  }
  </code></pre>
  
  <p>However, as soon as I try to have <code>matrix</code> in the original function modified by:</p>
  
  <pre><code>bool matrix[rows][cols];
  func(rows, cols, &amp;matrix);
  
  void func(int rows, int cols, bool *matrix[rows][cols]) {
      //...
  }
  </code></pre>
  
  <p>I receive an incompatible pointer type error. I am clueless as to why.</p>