English
Language : 

CC78K4 Datasheet, PDF (70/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 5 OPERATORS AND EXPRESSIONS
This chapter describes the operators and expressions to be used in the C language.
C has an abundance of operators for arithmetic, logical, and other operations. This rich set of operators also
includes those for bit and address operations.
An expression is a string or combination of an operator and one or more operands. The operator defines the
action to be performed on the operand(s) such as computation of a value, instructions on an object or function,
generation of side effects, or a combination of these.
Examples of operators are given below.
#define TRUE
1
#define FALSE
0
#define SIZE
200
void lprintf(char *, int);
void putchar(char c);
char mark [SIZE+1];
+ ...................................................................
Arithmetic operator
void main(void) {
int i, prime, k, count;
count = 0;
=..............................................................
for (i = 0 ; i <= SIZE ; i++)
++ .............................................
mark [i] = TRUE;
<= .............................................
Assignment operator
Postfix operator
Relational operator
for
(i = 0 ; i <= SIZE ; i++) {
if (mark [i]) {
prime = i + i + 3;
+ ...............................................
lprintf (“%d” , prime);
count++;
++ .............................................
if ((count%8) == 0)
==.............................
putchar ('\n');
for (k = i + prime ; k<=SIZE; k += prime)
+= ......
mark [k] = FALSE;
}
}
Arithmetic operator
Postfix operator
Relational operator
Assignment operator
70
User’s Manual U15556EJ1V0UM