Escape Sequence

Escape Sequence is a Sequence of characters they does not represent itself when they used inside a character or string literal but it is translated into another character.

List of Escape Sequences in C

Escape Sequence Meaning
\aBeep or Alarm
\b Backspace
\f Form Feed
\n New Line
\rCarriage Return
\t Tab(horizontal)
\v Vertical Tab
\\Backslash
\'Single Quote
\" Double Quote
\? Question Mark
\nnn Octal number
\xhh Hexadecimal number
\0Null

Escape Sequence Example

#include<stdio.h>    
int main(){    
     int number=50;  
    printf("You\nare\nlearning\n\C\ language.\");     
return 0;  
}

Output

You
are
learning
C language.

Submit your review
1
2
3
4
5
Submit
     
Cancel

Create your own review

The Technical Funda
Average rating:  
 0 reviews