title: Passing a string to a function (selectionSort), shows the error: passing argument 1 of 'selectionSort' from incompatible pointer type
body: <p>I crated a function that sort <strong>n</strong> strings in an array. When I do not  use parameters the function works, but if I pass my array of strings (<strong>strings</strong>) deploy a warning: <em>argument 1 of 'selectionSort' from incompatible pointer type</em>.</p>
  <p>I called the function in main:</p>
  <pre><code>selectionSort(strings, numStrings);
  </code></pre>
  <p>The function:</p>
  <pre><code>void selectionSort(char strings[], int numStrings)
  {
       char sinString[25] //25 is the limit for the string
       for(int i = 0; i &lt;= numStrings - 1; ++i)
       {
         for(int j = 1 + i; j &lt;= numStrigs; ++j)
           if(strcmp(strings[i], strings[j]) &gt; 0)
           {
             strcpy(sinString, strings[j]);
             strcpy(strings[j], strings[i]);
             strcpy(strings[i], sinString);
           }
  
       }  
  }
  </code></pre>