Character Literals

Character literals are character values written directly in the program text.


A character literal is a single character enclosed in single quotes. Character literals are the same as string literals except only one character can be entered.

See the documentation on string literals for the complete details of which characters can be entered.