Is there any reason to use the 'return' in the second line in the method ?
<p>I have this code that we can write in two ways </p>

<p><strong>First Way</strong></p>

<pre><code>void func(int val)
{
     if(val == 0)
          return;

     // Do something ...
}
</code></pre>

<p><strong>Second Way</strong></p>

<pre><code>void func(int val)
{
     if(val != 0)
     {
          // Do something ...
     }          
}
</code></pre>

<p>The Question:</p>

<p>Is there any reason to use the first way ? 
Is there any Advantage to use the first way ( in C++ or in C# ) </p>
