Escape sequences are used with a ‘\’ backslash character and are used in printf statements in order to display the output of the program in a specific form. List of escape sequences:
Character | Escape sequence
|
Double quotation mark | \” |
Single quotation mark | \’ |
Question mark | \? |
Backslash | \\ |
Beep | \a |
Backspace | \b |
Formfeed | \f |
Newlinw | \n |
Return | \r |
Tab | \t |