title: Default value for char in a constructor in C++
body: <p>Consider the following constructor of a class i C++. It gives me the error : </p>
  
  <blockquote>
    <p>default argument for parameter of type ‘char’ has type ‘const char [2]’</p>
  </blockquote>
  
  <p>Some advices please. I would be happy if I could set the default constructor for <code>correctAnswer</code> at <code>""</code> (nothing).</p>
  
  <pre><code>#include &lt;string&gt;
  #include &lt;iostream&gt;
  
  class Question{
      int id;
      std::string text;
      char correctAnswer;
  
  public:
  
      Question(int id=0, const std::string&amp; text="", char correctAnswer="a") : // here is the error
          id(id),text(text),correctAnswer(correctAnswer) {
      }
  }
  </code></pre>