title: How does the return statement work in C?
body: <p>I have a question about return statement in C, from where it really returns:</p>
  
  <pre><code>int base(int a)
  {
     if(a == 1)
       return 0;
  }
  
  int inherit()
  {
     base(1);
     // the rest of the code
  }
  </code></pre>
  
  <p>So within the <code>inherit()</code> function, <code>base()</code> is called, and it executes <code>return 0</code>, in this case; does the rest of code in <code>inherit()</code> still execute? How does the return statement really work?</p>