Operator Precedence
This program demonstrates the compiler operator in evaluating expressions and how to force evaluation using parenthesis.
'Operator Precedence
'Demonstrates how the compiler uses operator precedence
'to evaluate expression.
'********************************************************
Dim As Integer myInt
'Let compiler evaluate expression according to precedence
myInt = 5 + 6 * 3
Print "Expression 5 + 6 * 3 = ";myInt
'Force evaluation
myInt = (5 + 6) * 3
Print "Expression (5 + 6) * 3 = ";myInt
'Wait for keypress
Sleep
End





