Javatpoint Logo
Javatpoint Logo

Escape Sequence in C

An escape sequence in C language is a sequence of characters that doesn't represent itself when used inside string literal or character.

It is composed of two or more characters starting with backslash \. For example: \n represents new line.

List of Escape Sequences in C

Escape SequenceMeaning
\aAlarm or Beep
\fForm Feed
\nNew Line
\rCarriage Return
\tTab (Horizontal)
\vVertical Tab
\'Single Quote
\"Double Quote
\?Question Mark
\nnnoctal number
\xhhhexadecimal number

Escape Sequence Example


'c' language
"Do you know C language"
Next TopicConstants in C

Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials

B.Tech / MCA