Escape Sequences in C
On this page (5sections)
Escape Sequences
Special escape sequences are recognized and are introduced by the backslash character. These escape sequences are listed here:
Escape Sequences Character Based
\a
Audible alert
\b
Backspace
\f
Form feed
\n
New line
\r
Carriage return
\t
Horizontal tab
\v
Vertical tab
Escape Sequences Symbol Based
\\
Backslash
\"
Double quote
\'
Single quote
\?
Question Mark
Escape Sequences Advnaced Usage
\nnn
Octal character value
\unnnn
Universal character name
\Unnnnnnnn
Universal character name
\xnn
Hexadecimal character value
In the octal character case, from one to three octal digits can be specified. In the last three cases, hexadecimal digits are used.
Related Pages
Continue learning with these related tutorials and programs:
- C Tutorials — Browse all C Tutorials.
- C Introduction — Start here — what C is and why it matters.
- C History — More in c basics.
- C Specific Properties and Implementation — More in c basics.