Why does this code output a literal "\n" instead of a newline?
<p>What is the output of this following code?</p>

<pre><code>std::cout&lt;&lt;"what is the output \\n hello \'world\' world";
</code></pre>

<p>I think the output should be:</p>

<pre><code>what is the output
hello 'world' world
</code></pre>

<p>But the actual output is <code>the output \n hello 'world' world</code></p>

<p>Why isn't <code>\n</code> output as a new line?</p>
