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
\aAlert (Beep)
\fFormfeed (Return)
\nNew line
\rCarriage return
\tHorizontal Tab (Eight blank spaces)
\vVertical Tab
\'Single quotes
\"Double quotes
\?Question mark

Write your doubts or suggestion. I will try my best to help. You must escape source code before commenting. To format your source code paste your source code inside
<pre><code> ----Your Source Code---- </code></pre>