WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Operators

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Precedence and Evaluation Order

 Keywords: Operator Operands Precedence Evaluation Order 

Precedence and Evaluation Order

The precedence of the operators affect the evaluation of operands in expressions. Operands associated with higher-precedence operators are evaluated before the lower-precedence operators.

The table below shows the precedence of the operators. Where operators have the same precedence, they are evaluated from left to right.

Operator

Description

( )

Parenthetical grouping

& *

Unary pointer operators

~ ! - +

Unary operators

**

Exponentiation

* / mod

Multiplication, Division & Modulo

+ -

Addition & Subtraction

<< >>

Shift operators

:

Concatenation

< <= == >= > != <>

Relational operators

& ^ |

Bit manipulation operators

&& ||

Logical operators


Article ID:   W18219
Filename:   Precedence and Evaluation Order.txt
File Created: 2009:06:04:09:38:08
Last Updated: 2009:06:04:09:38:08