Escape Sequence

 Escape Sequence:

Escape Sequences are the non—printing characters used in C programming.

  • It is a character combination consisting of a backslash (\) which is followed by a character.
  • It is used to specify actions such as carriage returns and tab movements.


Some example of Escape Sequences:


Escape Sequence

Meaning

\a

Alarm or Beep

\b

Backspace

\f

Form Feed

\n

New Line

\r

Carriage Return

\t

Tab (Horizontal)

\v

Vertical Tab

\\

Backslash

\'

Single Quote

\"

Double Quote

\?

Question Mark

\0

Null

Post a Comment

Previous Post Next Post