Arithmetic operators
There are five arithmetic operators,
+
addition
–
subtraction
*
multiplication
/
division
%
modulus (the remainder of division, always positive or zero)
The modulus operator %, can only be used with integral data types.
Relational operators
The relational operators compare two values and return either a TRUE or
FALSE result based on the comparison.
>
greater than
>=
greater than or equal to
<
less than
<=
less than or equal to
Equality operators
The equality operators are exactly analogous to the relational operators
= =
equal to
!=
not equal to
Logical operators
The logical operators support the logical operations AND, OR and NOT.
They create a TRUE or FALSE value. Expressions connected by && and ||
are evaluated from left to right. The evaluation stops as soon as the result
is known. The numeric value of a relational or logical expression is 1 if the
relation is true, and 0 otherwise. The unary negation operator ! converts a
non-zero operand into 0 and a zero operand into 1.
&&
logical AND
||
logical OR
!
logical NOT
Chapter 9 Holtek C Language
91
Summary of Contents for HT-IDE
Page 11: ...P a r t I Integrated Development Environment Part I Integrated Development Environment 1 ...
Page 12: ...HT IDE User s Guide 2 ...
Page 20: ...Fig 1 6 Fig 1 7 HT IDE User s Guide 10 ...
Page 24: ...HT IDE User s Guide 14 ...
Page 70: ...HT IDE User s Guide 60 ...
Page 76: ...HT IDE User s Guide 66 ...
Page 92: ...HT IDE User s Guide 82 ...
Page 93: ...P a r t I I Development Language and Tools Part II Development Language and Tools 83 ...
Page 94: ...HT IDE User s Guide 84 ...
Page 148: ...HT IDE User s Guide 138 ...
Page 150: ...Fig 12 1 Fig 12 2 HT IDE User s Guide 140 ...
Page 154: ...HT IDE User s Guide 144 ...
Page 192: ...HT IDE User s Guide 182 ...
Page 194: ...HT IDE User s Guide 184 ...
Page 218: ...HT IDE User s Guide 208 ...
Page 235: ...P a r t V Appendix Part V Appendix 225 ...
Page 236: ...HT IDE User s Guide 226 ...
Page 250: ...HT IDE User s Guide 240 ...