C++ Escape Sequences

In C++, escape sequences are used to represent special characters within string literals. They begin with a backslash (\), here are all the escape sequences which you can include in strings:

Escape SequenceRepresented Character
\aSystem bell (beep sound)
\bBackspace
\fFormfeed (page break)
\nNewline (line break)
\r”Carriage return” (returns cursor to start of line)
\tTab
\\Backslash
\'Single quote character
\"Double quote character
\some integer xThe character represented by x