escape sequence characters
- escape sequences are used in formatting input and output
- an escape sequences always begins with a backward slash and is followed character
- c supports some special escape sequence characters that are used to do special task
- these are also called as backslash characters
- some of the escape sequence characters are as follows:
character constant | meaning |
\n | new line |
\b | backspace |
\t | horizontal tab |
\f | form feed |
\a | alert |
\r | carriage return |
\v | verticaltab |
\? | question mark |
\' | single quote |
\" | double quote |
\\ | backslash |
\0 | Null |
No comments:
Post a Comment