Next: , Previous: , Up: Integers   [Contents][Index]

14.1.2 Characters

8-bit unsigned integers can use an alternative literal notation that is useful when working with ASCII character codes. Printable character codes can be denoted with 'c'.

Non-printable characters can be expressed using escape-sequences. The allowed sequences are:


New-line character (ASCII 012).


Tab character (ASCII 011).


The backslash character.


Character whose ASCII code is the specified number, in octal.



The type of a character literal is always char, aka uint<8>.