June 2017
Beginner
1296 pages
69h 23m
English
Most literal characters to be printed in a printf statement can simply be included in the format string. However, there are several “problem” characters, such as the quotation mark (") that delimits the format string itself. Various control characters, such as newline and tab, must be represented by escape sequences. An escape sequence is represented by a backslash (\), followed by an escape character. Figure I.23 lists the escape sequences and the actions they cause.
| Escape sequence | Description |
|---|---|
\' (single quote) |
Output the single quote (') character. |
\" (double quote) |
Output the double quote (") character. |
\\ (backslash) |
Output the backslash (\) character. |
Read now
Unlock full access