title: How does the C code that prints from 1 to 1000 without loops or conditional statements work?
body: <p>I've found <code>C</code> code that <a href="https://stackoverflow.com/questions/4568645/printing-1-to-1000-without-loop-or-conditionals/4583502#4583502">prints from 1 to 1000 without loops or conditionals</a> : 
  But I don't understand how it works. Can anyone go through the code and explain each line?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  void main(int j) {
    printf("%d\n", j);
    (&amp;main + (&amp;exit - &amp;main)*(j/1000))(j+1);
  }
  </code></pre>