title: Just want to know how the code is actually running
body: <pre><code>#include&lt;iostream&gt;
  using namespace std;
  int i;
  void inc(int i)
  {
    i++;
  }
  
  int main()
  {
    for(int i=0;i&lt;10;inc(i))
    {
      cout&lt;&lt;i;
    }
    return 0;
  }
  </code></pre>
  
  <p>The output of the code is infinite zeroes..
  How does it give that</p>