, returning is the most explicit way to do so. In that way, a function that returns is also better style ‚Äì it's makes the purpose of the function clearer to the reader.</p>

<p>If you wanted to combine the efficiency of <code class="language-c++ highlighter-rouge"><span class="n">pigLatinReference</span></code> with the clarity of <code class="language-c++ highlighter-rouge"><span class="n">pigLatinReturn</span></code>, I would recommend writing a function that takes in the input string by <code class