RosettaCodeData/Task/Operator-precedence/PascalABC.NET/operator-precedence.pas

12 lines
408 B
ObjectPascal

Table of operations priorities:
** 1 (highest)
@, not, L , +, - (unary), new 2
*, /, div, mod, and, shl, shr, as, is 3
+, - (binary), or, xor 4
.. 5
= , <> , < , > , <=, >=, in 6
?: 7 (lowest)
Brackets are used to change the order of operations in expressions.