Skip to main content

Escape Sequences in C

1 min read
Share:
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.

Continue learning with these related tutorials and programs:

Related Tutorials

Search tutorials