title: Understand backspace (\b) behaviour in C
body: <p>This program copy its input to its output, replacing TAB(<code>\t</code>) by <code>\t</code> backspace(<code>\b</code>) by <code>\b</code>. 
  But here in my code I am unable to read input character when I  enter backspace its not replacing  as a tab works .</p>
  
  <p>Compiling with GCC in Linux:  </p>
  
  <pre><code>#include&lt;stdio.h&gt;
  int main(void)
  {
      int c=0;
      while((c=getchar())!=EOF){
       if(c=='\t'){
        printf("\\t");
       if(c=='\b')
        printf("\\b");
      }
      else
       putchar(c); 
  }
  return 0;
  }
  </code></pre>
  
  <p>Suppose if I type vinay (tab) hunachyal</p>
  
  <pre><code>Output:vinay\thunachyal 
  </code></pre>
  
  <p>If I type vinay(and 1 backspace)</p>
  
  <pre><code>Output:vina
  </code></pre>
  
  <p>So my query is why <code>vina\b</code> is not printing in this case?<br>
  Is it possible to detect <code>\b</code> and print <code>\b</code>? if not whats the reason</p>
  
  <p><code>Note:</code> I need at run time input backspace not providing separate file having \b  </p>