Online Reference

 

 

C REFERENCE
RAPID TABLES

 

 

    Home > Programming > C Reference > Constants > Escape Sequence

Escape Sequence

Escape sequence is a character constant of special characters.

Table of Escape Sequences

Escape SequenceDescription
\0null
\nnew line
\thorizontal tab
\vvertical tab
\rcarriage return
\fform feed
\bbackspace
\abell
\"double quote
\'single quote
\\backslash
\dddoctal number
\xdddhexadecimal number

Escape Sequence Examples

char c  = '\0';

char c2 = 0;                      // c2 = c = 0

printf("Line1 text\nLine2 text"); // \n is used for new line

© 2006-2008 RapidTables.com