title: String plus Char - what is happening?
body: <p>I'm just curious about what is going on when trying to add a char to a string.</p>
  <p>Initially, I thought it would work like a concatenation but it didn't:</p>
  <pre><code>cout&lt;&lt;&quot;ab&quot;+'a'&lt;&lt;endl;
  cout&lt;&lt;&quot;&quot;+'a'&lt;&lt;endl;
  </code></pre>
  <p>Prints</p>
  <p><img src="https://i.stack.imgur.com/EUo92.png" alt="enter image description here" /></p>
  <p>However,</p>
  <pre><code>cout&lt;&lt;&quot;bla&quot;&lt;&lt;endl;
  cout&lt;&lt;&quot;ab&quot;+'a'&lt;&lt;endl;
  cout&lt;&lt;&quot;&quot;+'a'&lt;&lt;endl;
  </code></pre>
  <p>Prints</p>
  <p><img src="https://i.stack.imgur.com/jvajw.png" alt="enter image description here" /></p>