Page

D.2.7- Operator Precedence

  by NT Community Manager.
Last Updated  by NT Community Manager.  

PublicCategorized as Appendix D.

Not tagged.
<< D.2.6- Bitwise operatorsAppendixDD.2.8- Unsupported operators >>

Operator Precedence

When more than one operationoccurs in an expression they are normally performed from left to right.However, there are several rules.

 

Operators from the arithmeticgroup are evaluated first, then concatenation, comparison and logicaloperators.

 

This is the complete order inwhich operations occur (operators in brackets have the same precedence):

 

^, -, (*, /), \, Mod, (+, -),

&,

=, <>, <, >, <=, >=, Is,

Not, And, Or, Xor, Eqv, Imp

 

This order can be overridden byusing parentheses. Operations in parentheses are evaluated before operationsoutside the parentheses, but inside the parentheses, the normal precedencerules apply.

<< D.2.6- Bitwise operatorsAppendixDD.2.8- Unsupported operators >>

Copyright © 2003 by Wiley Publishing, Inc.

Powered by Near-TimeTerms of Services | Privacy Policy | Security Policy |