Escape sequence in c

Escape Sequences
It is a sequence of characters starting with a backslash, and it doesn't represent itself when used
inside string literal.
Alarm or Beep
It produces a beep sound
\a
Backspace
It adds a backspace
\b
Form feed
\f
Newline
Newline Character
\n
Carriage return
\r
Tab
It gives a tab space
\t
Backslash
It adds a backslash
\\
Single quote
It adds a single quotation mark
\'
Question mark
It adds a question mark
\?
Octal No.
It represents the value of an octal number
\nnn
Hexadecimal No.
It represents the value of a hexadecimal number
\xhh
Null
The null character is usually used to terminate a string
\0
Posted on by