![background image](http://html.mh-extra.com/html/conrad/c-control-pro-mega-series/c-control-pro-mega-series_manual_2654183104.webp)
95
C-Control Pro Mega Series
© 2008 Conrad Electronic
*
Multiplication
5 * 4
20
/
Division
7 / 2
7.0 / 2
3
3.5
%
Modulo
15 % 4
17 % 2
3
1
-
Negative Sign
-(2+2)
-4
5.2.5.2
Bit Operators
Bit operators are only allowed for Integer data types
Operator
Description
Example
Result
&
And
0x0f & 3
0xf0 & 0x0f
3
0
|
Or
1 | 3
0xf0 | 0x0f
3
0xff
^
exclusive Or
0xff ^ 0x0f
0xf0 ^ 0x0f
0xf0
0xff
~
Bit inversion
~0xff
~0xf0
0
0x0f
5.2.5.3
Bit-Shift Operators
Bit-Shift operators are only allowed for Integer data types. With a Bit-Shift operation a
0
will always
be moved into one end.
Operator
Description
Example
Result
<<
shift to left
1 << 2
3 << 3
4
24
>>
shift to right
0xff >> 6
16 >> 2
3
4
5.2.5.4
In- /Decrement Operators
Incremental and decremental operators are only allowed for variables with Integer data types.
Summary of Contents for C-Control Pro Mega Series
Page 1: ... 2008 Conrad Electronic C Control Pro Mega Series ...
Page 9: ...VIII Inhalt 2008 Conrad Electronic ...
Page 10: ...Part 1 ...
Page 17: ...Part 2 ...
Page 23: ...Part 3 ...
Page 41: ...32 Hardware 2008 Conrad Electronic 3 3 5 3 Component Parts Plan ...
Page 57: ...48 Hardware 2008 Conrad Electronic 3 4 5 3 Component Parts Plan ...
Page 58: ...Part 4 ...
Page 91: ...82 IDE 2008 Conrad Electronic ...
Page 92: ...Part 5 ...
Page 135: ...126 Compiler 2008 Conrad Electronic 31 1F US 63 3F 95 5F _ 127 7F DEL ...
Page 136: ...Part 6 ...
Page 231: ...Part 7 ...
Page 240: ......