default parameters in c++
<p>Consider the following:</p>

<pre><code>int foo(int x , int z = 0);
int foo(int x, int y , int z = 0);
</code></pre>

<p>If I call this function like so:</p>

<pre><code>foo( 1 , 2);
</code></pre>

<p>How does the compiler know which one to use?</p>
