Escape sequences

Escape sequences

Escape sequences are used to represent certain special characters within string literals and character constants.

The following escape sequences are available. ISO C requires a diagnostic if the backslash is followed by any character not listed here:

Escape
sequence
Description Representation
\' single quote byte 0x27 (in ASCII encoding)
\" double quote byte 0x22 (in ASCII encoding)
\? question mark byte 0x3f (in ASCII encoding)
\\