Escape Sequences

Specific characters need escaping, by prefixing a backslash before the desired character:

Escape sequence Meaning
\$ $ dollar
\\ \ backslash
\' ' single quote
\" ” double quote
\? ? question mark
\a Alert or bell
\b Backspace
\f Form feed
\n Newline
\r Carriage return
\t Horizontal tab

Leave a Reply