String as function argument: how to work with the memory?
<pre><code>void foo(const char* s) { }
foo("bar");
</code></pre>

<ol>
<li>Where is the memory <code>bar</code> deallocated?</li>
<li>What is the most comfortable and memory leak free practice to work with anonymous strings in function arguments? (I know there should be no magic strings, just curious.)</li>
</ol>
