What do \t and \b do?
Backspace and tab both move the cursor position. Neither is truly a ‘printable’ character. Your code says: print “foo” move the cursor back one space move the cursor forward to the next tabstop output “bar”. To get the output you expect, you need printf(“foo\b \tbar”). Note the extra ‘space’. That says: output “foo” move the cursor … Read more