Sequence | Value |
\a | audible bell |
\b | backspace |
\f | form feed |
\n | new line |
\r | carriage return |
\t | horizontal tab |
\v | vertical tab |
\\ | backslash |
\' | single quote |
\" | double quote |
\O | O = up to 3 octal digits |
\xH | H = up to 2 hex digits |
Any character following the initial backslash that is not mentioned in this list will be treated as that character (without the backslash).
Escape sequences can be used in character constants and string constants.
Examples
'\n' "A tab\tinside a text\n" "Ring the bell\a\n"
Index | Copyright © 2005 CadSoft Computer GmbH |