C++ Tutorials

C++ Tutorials

There are some character which can’t be typed by keyboard in C++ Programming language. These are called non-graphic characters.

An escape sequence is represented by backslash (\) followed by one or more characters.

List of common escape sequences.

Sequence task
\a Bell (beep)
\b backspace
\f Formatted
\n Newline or line feed
\r carriage return
\t Horizontal tab
\v Vertical tab
\? Question mark
\\ Backslash
\’ Single quote
\” Double quote
\xhh Hexadecimal number(hh represents the number in hexadecimal)
\000 Octal number (00 represents the number in octal)
\0 Null