Escape Sequence
An escape sequence refers to a combination of characters beginning with a back slash (\) followed by letters or digits. Escape sequences represent non-printable and special characters in character and literal strings. As such, they allow users to communicate with a display device or printer by sending non-graphical control characters to specify actions like question marks and carriage returns.
\\ backslash
\' single quote
\"double quote
\a bell(plays beep sound)
\b backspace
\f formfeed(useless)
\n linefeed(newline)
\r carriage return(eg 1234567/rhello==hello67)
\t horizontal tab
\v vertical tab(useless)
special charcters with their special meanings.
occupies 1 charcter space
Comments
Post a Comment
For any queries or suggestions
Comment Here