Renesas M16C PC4701 Network Card User Manual


 
10 C/C++ Expressions
257
10.1.13 Casting to typedef Types
You can use casting to typedef types (types other than the C basic types) and the pointer types to
them. When casting to a pointer type, you can also use pointers to pointers and pointers to pointers to
pointers, etc.
Notes
You cannot cast to struct or union types or the pointers to those types.
10.1.14 Variable Name
Variable names that begin with English alphabets as required
under C/C++ conventions can be used.
The maximum number of characters for variable name is 255.
And 'this' pointer is available.
10.1.15 Function Name
Function names that begin with English alphabets as required
under C conventions can be used.
In the case of C++, no function names can be used.
10.1.16 Character Constants
You can use characters enclosed in single quote marks (') as character constants. For example, 'A', 'b' ,
etc. These character constants are converted to ASCII code and used as 1-byte immediate values.
Notes
You cannot register character constants only as C watchpoints.
Character constants are valid only when used in a C/C++ expression that specifies a C
watchpoint, and when specifying a value to be assigned (character constants are processed in the
same manner as immediate values).
10.1.17 Character String Literals
You can use character strings enclosed in double quote marks (") as character string literals.
Examples are "abcde", "I am a boy.", etc.
Notes
Character string literals can only be placed on the right side of an assignment operator in an
expression. They can only be used when the left side of the assignment operator is a char array or
a char pointer type. In all other cases, a syntax error results.