Character escape codes are used to represent special characters within character literals and string literals.
| Escape code | ASCII value representation | Description |
|---|---|---|
'\0' |
0x00 | null terminator |
'\t' |
0x09 | horizontal tab |
'\n' |
0x0a | new line |
'\r' |
0x0d | carriage return |
'\"' |
0x22 | double quote |
'\'' |
0x27 | single quote |
'\\' |
0x5c | backslash |