 class="mi">2</span> <span class="o">*</span> <span class="n">a</span><span class="p">);</span>
<span class="p">}</span>
</code></pre></div></div>

<p><strong>Prefer return value over reference 'out' parameter for single value return:</strong> If a single value needs to
be sent back from a function, it is cleaner to do with return value than a reference <code class="language-c++ highlighter-rouge"><span class="n">out</span></code> parameter.</p>

<div class="language-c++ bad col-sm-6 highlighter-rouge"><div