title: c++ function parameter char pointer and string
body: <pre><code>void callme(string a)
  {
    cout&lt;&lt;"STRING CALLED"&lt;&lt;endl;
  }
  
  void callme(char * a)
  {
    cout&lt;&lt;"char pointer called"&lt;&lt;endl;
  }
  
  int main()
  {
     callme("ASDADS");
     return 0;
  }
  </code></pre>
  
  <p>why is it that the <code>char*</code> will be called? and why when I comment out the function with the <code>char*</code> parameter, the other function will be called instead?</p>