Can This Code Compile?
<blockquote>
  <p><strong>Possible Duplicates:</strong><br>
  <a href="http://stackoverflow.com/questions/3652182/c-void-return-type-of-main">C++ void return type of main()</a><br>
  <a href="http://stackoverflow.com/questions/4207134/what-is-the-proper-declaration-of-main">What is the proper declaration of main?</a>  </p>
</blockquote>



<p>Simple question, really. </p>

<p>My friend and I are perusing the Powerpoint slides of a professor we are supposed to be hearing next semester. It will be a Java course. For some reason, he has this C++ code snippet</p>

<pre><code>#include &lt;iostream.h&gt;
main ()
{ cout &lt;&lt; "Hello, World\n"; }
</code></pre>

<p>I have told my friend, "No, this won't work with any modern C++ compiler." </p>

<p>My question is now, can this compile at all?</p>
