Professional Documents
Culture Documents
Marriette Katarahweire
((((a + b) * c)**d)**e)/f
or
a + (((b * c)**d)**(e/f))
or
a + ((b * (c**(d**e)))/f)
CSC 3112: Principles of Programming Languages 8/23
Operator Precedence
2+3∗4
is 14 and not 20
Lesson: when unsure, use parentheses!
Caused by:
Inherent limitations of arithmetic e.g. division by zero
Limitations of computer arithmetic e.g. overflow