return vs do nothing after if statement : <p>What is the difference between these two functions in terms of code execution. The result is the same, but will the compiler optimize both to the same outputted assembly?</p>

<pre><code>void some_func() 
{
   if (!something)
      return;
   //rest of code
}

void other_func() 
{
   if (something) {
      //rest of code
   }
}
</code></pre>
