Returning zero from main breaks my program
<p>I just begin to learn C++, for the main method i do:</p>

<pre><code>#include &lt;iostream&gt;
using namespace std;

int main ()
{
   int d;
   int n;
   cout &lt;&lt;"Enter the denominator: " &lt;&lt; endl;
   cin &gt;&gt; d;
   cout &lt;&lt;"Enter the numerator: " &lt;&lt; endl;
   cin &gt;&gt; n;
   cout &lt;&lt;"The result of operation is: " &lt;&lt; endl;
   cout &lt;&lt; (double)n/d &lt;&lt; endl;
   cout &lt;&lt;"Done";
   return 0;
}
</code></pre>

<p>It doesn't produce output, but if I delete return 0. I will generate correct output. Shouldn't the main method in C++ always return an integer eventually? </p>
