Escape Sequence in C

tutorial and example
tutorial and example

Escape sequence is sequence of character that used inside the string literal or character.  All the escape sequence is used with backslash (\) symbol.

The following list of Escape sequence

Escape Sequence Meaning
\a Alarm or Beep
\b Backspace
\f Form Feed
\n New Line
\r Carriage Return
\t Tab (Horizontal)
\v Vertical Tab
\\ Backslash
\’ Single Quote
\” Double Quote
\? Question Mark
\nnn octal number
\xhh hexadecimal number
\0 Null

Let us consider an Example