title: passing char array as function parameters in C
body: <p>I want to copy <code>arr2</code> to <code>arr</code> and pass <code>arr</code> as a function paramater</p>
  
  <pre><code>void func(char * array)
  {}
  
  int main(void)
  {
      int a;
      char arr[6][50];
      char arr2[][50]={"qweeeaa","bbbb","ffaa","eeaa","aaaa","ffaa"};
  
      for(a=0; a&lt;6;a++)
      {
          strcpy(arr[a], arr2[a]);
      }
  
      func(arr);
  
      return 0;
  }
  </code></pre>
  
  <p>But I can not pass <code>arr</code> as a function parameter. I get </p>
  
  <pre><code>[Warning] passing argument 1 of 'func' from incompatible pointer type [enabled by default]
  [Note] expected 'char *' but argument is of type 'char (*)[50]'
  </code></pre>
  
  <p>I am using <code>MinGW GCC 4.8.1</code></p>