What are escape sequences explain with examples
What are escape sequences?
Escape sequences are typically used to specify actions such
as carriage returns and tab movements on terminals and printers.
They are also used to provide literal representations of
nonprinting characters and characters that usually have special meanings,
such as the double quotation mark (").
\b – backspace \\ - backslash
\f – form feed \v – vertical tab
\n – new line \a – alert (bell)
\r – carriage return \t – horizontal tab
\’ – single quote \? – question mark
\” – Double quotes \0 – null