Instructions

180Compiler
© 2013 Conrad Electronic
16 >> 2
4
4.2.5.4 In- /Decrement Operators
Incremental and decremental operators are only allowed for variables with Integer data types.
Operator
Description
Example
Result
variable++
first variable value, after access variable
gets incremented by one (postincrement)
a++
a
variable--
first variable value, after access variable
gets decremented by one (postdecrement)
a--
a
++variable
value of the variable gets incremented by
one before access (preincrement)
++a
a+1
--variable
value of the variable gets decremented by
one before access (predecrement)
--a
a-1
4.2.5.5 Comparison Operators
Comparison operators are allowed for float and Integer data types.
Operator
Description
Example
Result
<
smaller
1 < 2
2 < 1
2 < 2
1
0
0
>
greater
-3 > 2
3 > 2
0
1
<=
smaller or equal
2 <= 2
3 <= 2
1
0
>=
greater or equal
2 >= 3
3 >= 2
0
1
==
equal
5 == 5
1 == 2
1
0
!=
not equal
2 != 2
2 != 5
0
1
4.2.5.6 Logical Operators
Logical operators are only allowed for Integer data types. Any value unequal null is meant to be a lo-
gical 1. Only null is valid as logical 0.
Operator
Description
Example
Result