title: Incrementing of variable inside a loop
body: <p>What will be the output of the program?</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  void main()
  {
     int i = 0;
     while(i &lt; 10)
      {
        i++;
        printf("%d\n",i);
      }
  }
  </code></pre>
  
  <p>Will the output start from 0 or from 1 as I my professor taught me that the value of the variable is incremented only at the end of the loop while using i++ unlike in ++i?</p>