Thursday, December 29, 2016

Escape Sequences in Strings

Escape Sequences in Strings


Quotes are not the only characters that can be escaped inside a string. Here is a table of common escape sequences:
CodeOutput
\'single quote
\"double quote
\\backslash
\nnewline
\rcarriage return
\ttab
\bbackspace
\fform feed