A character constant may consist of one ASCII code character enclosed within the apostrophes. Also, you may specify the character by its hexadecimal value of exactly two hexadecimal digits preceded by characters '\x'.
Examples:
'A' 'a' '7' '$' '\x02' '\x88'
Special (control) character constants
New line (line feed) HL (LF) '\n'
Horizontal tabulation HT '\t'
Vertical tabulation VT '\v'
Backspacing BS '\b'
Carriage return CR '\r'
Form feed FF '\f'
Backslash \ '\\'
Apostrophe ' '\''
Quotation marks " '\"'
Zero character (null) NUL '\0'
Note. The character constants are considered to be the int-type data.
|