Operators
Description
Associativity
+
–
add (binary)
subtract (binary)
left to right
<<
>>
shift left
shift right
left to right
<
<=
>
>=
less than
less than or equal to
greater than
greater than or equal to
left to right
==
!=
&
∧
|
&&
||
?:
equal
not equal
bitwise AND
bitwise XOR (exclusive OR)
bitwise OR
logical AND
logical OR
conditional expression
left to right
=
*=
/=
%=
+=
–=
<<=
>>=
&=
|=
∧
=
simple assignment
multiply and assign
divide and assign
modulus and assign
add and assign
subtract and assign
left shift and assign
right shift and assign
bitwise AND and assign
bitwise OR and assign
bitwise XOR and assign
right to left
, comma
left
to
right
Type conversions
The general rule for type conversion is to convert a "narrower" operand into
a "wider" one without losing information, such as converting an integer into
a long integer. The conversion from char to long is sign extension. Explicit
type conversion can be forced in any expression, with a unary operator
called a cast. In the example:
(type-name) expression
the
expression
is converted to the named type
HT-IDE User’s Guide
94
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 ...