If several operators exist in a single expression and parentheses have not been used then the expression is evaluated in a strict order. This order is known as "operator precedence"
When operators have the same precedence they are evaluated from left-to-right.
Parentheses can be used to overwrite the order and to evaluate certain parts of the expression. Operations inside parentheses are always performed before those outside.
When a series of operators appear in the same expression there is a strict order in which they will be evaluated.
The rules of precedence tell the compiler which operators to evaluate first.
Parentheses can obviously be used to change the order of precedence.
Operators are evaluated in the following order: Mathematical, Concatenation, Relational, Logical.
|4||Division with Integer result||\|
|8||Equal or Assignment||=|
|8||Not Equal To||<>|
|8||Less Than or Equal To||<=|
|8||Greater Than or Equal To||>=|
© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited TopPrevNext