|
CC78K4 Datasheet, PDF (49/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language | |||
|
◁ |
CHAPTER 2 CONSTRUCTS OF C LANGUAGE
2.5 String Literals
A string literal is a string of zero or more characters enclosed in a pair of double quotes as in âxxxâ. (Example:
âxyzâ)
A single quote (â) is represented by the single quotation mark itself or by the escape sequence \â, whereas a
double quote (â) is represented by the escape sequence \â.
Array elements have a char type string literal and are initialized by assigned tokens (example: char array [ ] =
âabcâ;).
2.6 Operators
The operators are shown below.
[ ] ( ) . ->
++ - - & * + â ~ ! sizeof
/ % << >> < > <= >= == !=
^ | && ||
?:
= *= /= %= += -= <<= >>=
&= ^= |=
, # ##
The [ ], ( ), and ?: operators must always be used in pairs.
An expression may be described in brackets â[ ]â, in parentheses â( )â, or between â?â and â:â.
The # and ## operators are used only for defining macros in preprocessings. (For the description, refer to
CHAPTER 5 OPERATORS AND EXPRESSIONS.)
2.7 Delimiters
A delimiter is a symbol that has an independent syntax or meaning. However, it never generates a value.
The following delimiters are available for use in C.
[ ] ( ) { } * , : = ; ... #
An expression declaration or statement may be described in brackets â[ ]â, parentheses â( )â, or braces â{ }â,
These delimiters must always be used in pairs as shown above. The delimiter # is used only for preprocessings.
Userâs Manual U15556EJ1V0UM
49
|
▷ |