C++ function return scope and reference
<p>recently I am learning C++ and have some doubt on the following case.</p>

<pre><code>void function_a(const int &amp;i){
  //using i to do something
}

int function_b(){
  return 1;
}
</code></pre>

<p>ok, if I am going to call...</p>

<pre><code>function_a(function_b());
</code></pre>

<p>is there any chance that <strong>function_a</strong> read dirty reference from the it's param?</p>

<p>Thank for your time.</p>
