Operator precedence shortcut

This tip submitted by sai shanker on 2011-01-13 07:28:26. It has been viewed 7751 times.
Rating of 5.6 with 48 votes



To remember the priority of operators in computations.just remember the word "BODMAS"

B=brackets first( (,) )
O=orders(like power and square etc.,)
D=division(/)
M=multiplication(*)
A=addition(+)
S=substraction(-)



More tips

Help your fellow programmers! Add a tip!