title: Any exit status without explicitly using return /exit
body: <p>This actually bugging me from quite sometime now.The question is like this : <strong>How to set the the exit status of a program to any value without explicitly using return/exit in gcc/g++ ?</strong>
  Let us consider this piece of code : (Takes input from stdin and print
  it to the stdout until a zero input 0 is encountered)</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main() {
    int n;
    while(scanf("%d",&amp;n) &amp;&amp; n&gt;0 )
      printf("%d\n",n);
  }
  </code></pre>
  
  <p>In my system (which is <strong>windows + mingw</strong>) it is returning 1,How to make
  it to return 0 or anything else implicitly without explicitly using
  exit/return ? </p>
  
  <p><strong>EDIT :</strong></p>
  
  <p>I modified the code a bit :</p>
  
  <pre><code>int f(int n) { 
    return (n&gt;0);
  }
  
  int main(){
    int n;
    while(scanf("%d",&amp;n)&amp;&amp;f(n))
      printf("%d\n",n);
  }
  </code></pre>
  
  <p>It's now returning 0 implicitly,but I couldn't draw any firm conclusion from this.</p>