C character escape codes are commonly used for string literals in various C-style languages, such as C, C++, and Java.

Sequence Description ASCII code (decimal)
Null 0
\ Backslash 7
Double quotation mark 34
Single quotation mark 39
? Question mark 63
a Alarm / Bell 7
b Backspace 8
f Form feed 12
n Line feed 10
r Carriage return 13
t Tab (horizontal) 9
v Tab (vertical) 11

In addition to the standard escape sequences above, it is commonly also possible to use ASCII codes directly, expressed in octal or hexadecimal:

Base Sequence Examples
Octal nnn Line feed:
Question mark:
12
77
Hexadecimal xnn Line feed:
Question mark:
x0a
x3f