+ 3
What is Operator precedence?
according to operator precedence, we can choose which mathematical operation will occur First!
3 Answers
+ 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 *
+ 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.
0
I think Java... and oops both are beneficial for startup.