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
\nNew Line
\rCarriage Return
\tHorizontal Tab
\vVertical Tab
\'Single quotation mark
\''Double quotation mark
\?Literal question mark
\oooASCII character in octal notation
\xhhASCII character in hexadecimal notation
\nnnOctal Number

  • Print Page