No, that’s more or less what they’re meant to do.
In C (and many other languages), you can insert hard-to-see/type characters using \
notation:
\a
is alert/bell\b
is backspace/rubout\n
is newline\r
is carriage return (return to left margin)\t
is tab
You can also specify the octal value of any character using \0
nnn, or the hexadecimal value of any character with \x
nn.
- EG: the ASCII value of
_
is octal 137, hex 5f, so it can also be typed\0137
or\x5f
, if your keyboard didn’t have a_
key or something. This is more useful for control characters like NUL (\0
) and ESC (\033
)
As someone posted (then deleted their answer before I could +1 it), there are also some less-frequently-used ones:
\f
is a form feed/new page (eject page from printer)\v
is a vertical tab (move down one line, on the same column)
On screens, \f
usually works the same as \v
, but on some printers/teletypes, it will
go all the way to the next form/sheet of paper.