1/13/00
COM1100 Winter2000 Yuhong Yin Northeastern University
7
Rules of expressions -- 2
nSets of parentheses may also be enclosed by other parentheses and expressions in the innermost parentheses are always evaluated first.
n(2 * (3 + 7) ) / 5
n  = ( 2 * 10 ) / 5
n  = 20 / 5
n  = 4
nParentheses can not be used to indicate multiplication
n( 3 + 4 ) ( 5 + 1)  // Wrong !
n( 3 + 4 ) * ( 5 + 1)  // OK !