Escape Sequences for Character and String Literals
The character and string escape sequences allow for the representation of some non-graphic characters as well as the single quote, double quote, and backslash characters in character literals and string literals.
Escape Sequences:
\ b /* \u0008: backspace BS */
\ t /* \u0009: horizontal tab HT */
\ n /* \u000a: linefeed LF */
\ f /* \u000c: form feed FF */
\ r /* \u000d: carriage return CR */
\ " /* \u0022: double quote " */
\ ' /* \u0027: single quote ' */
\ \ /* \u005c: backslash \ */
\ 0 /* \u0000: null character */
\ UnicodeInputCharacter/* the actual Unicode character */
If the character following a backslash in an escape is not an ASCII b, t, n, f, r, ", ', \, or 0,
then the escape sequence is replaced with the actual character and the backslash is simply omitted.