The escape sequences allow you to use a sequence of characters to represent special characters. Escape sequences are listed below.
| Sequence | Name |
| \a | Alert (bell) |
| \b | Backspace |
| \f | Formfeed |
| \n | Newline |
| \r | Carriage return |
| \t | Horizontal tab |
| \v | Vertical tab |
| \? | Literal quotation mark |
| \' | Single quotation mark |
| \" | Double quotation mark |
| \\ | Backslash |
| \ddd | ASCII character in octal notation |
| \xdd | ASCII character in hex notation |
| \0 | Null character |
Note that for characters notated in hexadecimal, the compiler ignores all leading zeros. It establishes the end of the hex-specified escape character when it encounters either the first non-hex character or more than two hex characters — not including leading zeros. In the latter case, it reports an error and ignores all characters beyond the second one.