Loading, please wait...

Character Constants

Can be either single characters in primes (eg: 'A') or portable representations of "odd" characters.

'\n' newline

'\r' carriage return

'\f' form feed

'\t' tab

'\b' backspace

'\a' audible alarm (beep)

'\0' null

'\\' backslash

'\'' prime

Any character can be represented by \ followed by an octal ASCII value of up to 3 digits or by \x followed by a hexadecimal ASCII value of one or two digits.

 '\33' or '\x1B' is the escape character.