Escape Sequences

Escape Sequences

Within the string argument to printf, the backslash (\) signals that a special effect is needed at this point. The character following the backslash specifies what to do. This combination (\ followed by another character) is referred to as an escape sequence. The following are some escape sequences you can use in a string in a printf statement:
\n      issue   a newline character
\f       issue   a new page (form feed) character
\t       issue   a tab character
\”      print    ”
\\       print   \

For any query or issue, feel free to discuss on http://discuss.eduguru.in