[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
The debugger supports most C operators and includes an additional set of
operators for convenience. The WATCOM C Language Reference manual describes
many of these operators.
The syntax for debugger expressions is similar to that of the C programming
language. Operators are presented in order of precedence, from lowest to
highest. Operators on the same line have the same priority.
Lowest Priority
Assignment Operators
= += -= *= /= %= &= |= = <<= >>=
Logical Operators
||
&&
Bit Operators
|
&
Relational Operators
== !=
< <= < >=
Shift Operators
<< >>
Arithmetic Operators
+ -
* / %
Unary Operators
+ - ~ ! ++ -- & * %
sizeof unary_expr
sizeof(type_name)
(type_name) unary_expr
[type_name] unary_expr
?
Binary Address Operator
:
Highest Priority
Parentheses can be used to order the evaluation of an expression.
In addition to the operators listed above, a number of primary expression
operators are supported. These operators are used in identifying the object
to be operated upon.
[]
subscripting, substringing
()
function call
.
field selection
->
field selection using a pointer
The following sections describe the operators presented above.
Online resources provided by: http://www.ClipX.Net --- NG 2 HTML conversion by Dave Pearson