1/13/00
COM1100 Winter2000 Yuhong Yin Northeastern University
6
Rules of expressions -- 1
nC++ requires certain rules be followed when writing arithmetic expressions containing more than one operators
nTwo binary arithmetic operator symbols must never be placed side by side
n5 * % 6  // Wrong !
nParentheses should be used to form grouping and all expressions enclosed within parentheses are evaluated first.
n( 6 + 4 ) / ( 2 + 3 )
n = 10 / 5
n   = 2