title: Possible output of the following program fragment?
body: <pre><code>for(i=getchar();; i=getchar())
  if(i=='x')
  break;
  else putchar(i);
  </code></pre>
  
  <p>Answer is : mi</p>
  
  <p>Can someone explain this piece of code ?(MCQ Question)</p>