Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Escape sequences are used to define certain special characters within string literals.
- The following escape sequences are available:
- Escape Description
- sequence
- \' single quote (byte 0x27)
- \" double quote (byte 0x22)
- \\ backslash (byte 0x5c)
- \0 null character (byte 0x00)
- \a audible bell (byte 0x07)
- \b backspace (byte 0x08)
- \f form feed - new page (byte 0x0c)
- \n line feed - new line (byte 0x0a)
- \r carriage return (byte 0x0d)
- \t horizontal tab (byte 0x09)
- \v vertical tab (byte 0x0b)
- \nnn arbitrary octal value (byte nnn)
- \xnn arbitrary hexadecimal value (byte nn)
- \unnnn arbitrary Unicode value (code point U+nnnn) May result in several characters.
- \Unnnnnnnn arbitrary Unicode value (code point U+nnnnnnnn) May result in several characters.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement