+ 3

What is Operator precedence?

according to operator precedence, we can choose which mathematical operation will occur First!

18th Jun 2017, 4:41 AM
vaishnavi pandey
vaishnavi pandey - avatar
3 ответов
+ 9
Operator precedence determines the order in which operators are evaluated. Operators with higher precedence are evaluated first. consider this: (2+2)*9 = 4*9 = 36 2+2*9 = 2+18 = 20 Because () have more precedence than + and *
18th Jun 2017, 5:00 AM
Nithiwat
Nithiwat - avatar
+ 4
Ehhh not really 'choose', more or less 'make' with use of brackets. It's just like math with the: first brackets, then exponents, then division, etc.. You can see the order in the chart shown here: http://introcs.cs.princeton.edu/java/11precedence/ This is for Java though, some languages might be ever so slightly different.
18th Jun 2017, 4:58 AM
Rrestoring faith
Rrestoring faith - avatar
0
I think Java... and oops both are beneficial for startup.
2nd Jul 2017, 8:05 PM
vaishnavi pandey
vaishnavi pandey - avatar