title: Carriage return in C?
body: <p>Output of Following program is : <code>hai</code>  </p>
  
  <p>I didn't get how the <code>\r</code> carriage return works in this program and in real can any one help me out ?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include&lt;conio.h&gt;
  
  void main()
  {
      printf("\nab");
      printf("\bsi");
      printf("\rha");
      _getch();
  }
  </code></pre>