Escape Sequence


Escape sequences are combination of Characters consisting of backslash('\') followed by combination of letters or digits.Escape sequences are generally used for adding new lines , movement of tabs , carriage return , etc.

Following are the escape sequences present in c Language

Escape sequenceoperation
\aBeep
\bBackspace
\f>Formfeed
\nNew Line
\rCarriage Return
\tHorizontal Tab
\vVertical Tab
\'Single quotation mark
\''Double quotation mark
\\Backslash
\?Literal question mark
\oooASCII character in octal notation
\xhhASCII character in hexadecimal notation
\0Null
\nnnOctal Number

  • Print Page