Shortest Program in c++
<p>I came across this code recently that compiles, but runs with segmentation fault(g++). 
Here's the original link from topcoder
<a href="http://www.topcoder.com/tc?module=MemberProfile&amp;cr=22689214&amp;tab=alg" rel="nofollow">topcoder profile</a></p>

<pre><code>#include &lt;iostream&gt;
int main = ( std::cout &lt;&lt; "Hello world!\n", 42  );
</code></pre>

<p>This also compiles</p>

<pre><code>int main=0;
</code></pre>

<p>Can someone explain what's happening in this program. Using g++</p>
