#6CCharacterConstantsA“characterconstant”isformedbyenclosingasinglecharacterfromtherepresentablecharactersetwithinsinglequotationmarks('').Characterconstantsareusedtorepres...
CCharacterConstants
A“characterconstant”isformedbyenclosingasinglecharacterfromtherepresentablecharactersetwithinsinglequotationmarks('').Characterconstantsareusedtorepresentcharactersintheexecutioncharacterset.
Syntax
character-constant:
'c-char-sequence'
L'c-char-sequence'
c-char-sequence:
c-char
c-char-sequencec-char
c-char:
Anymemberofthesourcecharactersetexceptthesinglequotationmark('),backslash(\),ornewlinecharacter
escape-sequence
escape-sequence:
simple-escape-sequence
octal-escape-sequence
hexadecimal-escape-sequence
simple-escape-sequence:oneof
\a\b\f\n\r\t\v
\'\"\\\?
octal-escape-sequence:
\octal-digit
\octal-digitoctal-digit
\octal-digitoctal-digitoctal-digit
hexadecimal-escape-sequence:
\xhexadecimal-digit
hexadecimal-escape-sequencehexadecimal-digit