What are Escape sequence characters?

Escape characters are sequence of characters that are converted to some another character which are difficult or impossible to print directly. Characters such as new lines, you cannot print a new line directly in any programming language by hitting enter key. To print new line an special character is given \n which is later converted to new line by compiler. Likewise there are many escape sequence character used in programming languages.

An escape character begin with backward slash \ followed by escape character.

List of all escape sequence characters

Escape characterDescription
\0NULL
\aAlert (Beep)
\bBackspace
\eEscape
\fFormfeed (Return)
\nNew line
\rCarriage return
\tHorizontal Tab (Eight blank spaces)
\vVertical Tab
\\Backslash
\'Single quotes
\"Double quotes
\?Question mark

About Pankaj

Pankaj Prakash is the founder, editor and blogger at Codeforwin. He loves to learn new techs and write programming articles especially for beginners. He works at Vasudhaika Software Sols as a Software Design Engineer and manages Codeforwin. In short Pankaj is Web developer, Blogger, Learner, Tech and Music lover.

Follow on: Facebook | Twitter | Google | or

Comments and discussion
Have a doubt, write here. I will help my best.
Before commenting you must escape your source code before commenting. Paste your source code inside
<pre><code> ----Your Source Code---- </code></pre>