title: Passing char* array to function
body: <p>I have an array of char with 4 names.</p>
  
  <pre><code>char* c[8] = {"Dave", "Alex", "John", "Andrew"};
  sort_array(c, 4);
  </code></pre>
  
  <p>I need to sort these names by alphabetical order. I am trying to receive this array in a function like:</p>
  
  <pre><code>void sort_array(char* arr, int n) {
      ...codehere...
  }
  </code></pre>
  
  <p>But I get the following error:</p>
  
  <pre><code>cannot convert 'char**' to 'char*' for argument '1' to 'void
  sort_array(char*, int)'
  </code></pre>
  
  <p>So, how to get rid of this error?</p>