Thursday 1 January 2015

operator precedence to solve logical errors

Operator Precedence in BASIC


( ) parentheses
1
^ (Exponent)
2
- (Negation)
3
*, / ( Multiplication or Division)
4
MOD (Modulus)
5
+, - ( Addition or Subtraction)
6
\ (Integral Division)
7
<>, <=, >=, <, >. (Relational operators)
8
NOT
9
AND
10
OR
11
= ( assignment Operator)
12

No comments:

Post a Comment