#include <stdio.h>
main()
{
int c;
while ((c = getchar()) != EOF) {
if (c == '\t') {
putchar('\\');
putchar('t');
}
if (c == '\b') {
putchar('\\');
putchar('b');
}
if (c == '\\') {
putchar('\\');
putchar('\\');
}
if (c != '\t')
if (c != '\b')
if (c != '\t')
putchar(c);
}
}
My question is - why can't i see the \b
output? I'm currently learning K&R C and using Windows 10. I can't get a \b
symbol in the Windows command line, while on Ubuntu it works pretty much ok. I've tried CTRL + H, but still no \b
. Is there a way to fix this?