Operator precedence shortcut

This tip submitted by sai shanker on 2011-01-13 07:28:26. It has been viewed 5836 times.
Rating of 3.2 with 6 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!