
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
Содержание HT-IDE
Страница 11: ...P a r t I Integrated Development Environment Part I Integrated Development Environment 1 ...
Страница 12: ...HT IDE User s Guide 2 ...
Страница 20: ...Fig 1 6 Fig 1 7 HT IDE User s Guide 10 ...
Страница 24: ...HT IDE User s Guide 14 ...
Страница 70: ...HT IDE User s Guide 60 ...
Страница 76: ...HT IDE User s Guide 66 ...
Страница 92: ...HT IDE User s Guide 82 ...
Страница 93: ...P a r t I I Development Language and Tools Part II Development Language and Tools 83 ...
Страница 94: ...HT IDE User s Guide 84 ...
Страница 148: ...HT IDE User s Guide 138 ...
Страница 150: ...Fig 12 1 Fig 12 2 HT IDE User s Guide 140 ...
Страница 154: ...HT IDE User s Guide 144 ...
Страница 192: ...HT IDE User s Guide 182 ...
Страница 194: ...HT IDE User s Guide 184 ...
Страница 218: ...HT IDE User s Guide 208 ...
Страница 235: ...P a r t V Appendix Part V Appendix 225 ...
Страница 236: ...HT IDE User s Guide 226 ...
Страница 250: ...HT IDE User s Guide 240 ...