|

Meaning of "precedence"

Precedence of operators

Meaning of "associativity"

Boolean Operators

Precedence of boolean operators

In math, different precedences are given to operators to reduce the need for parentheses. E.g. you know that the two expressions given below yield the same value because of the convention that multiplication takes precedence over addition, i.e. multiplication has higher precedence than addition.

b+(c*d) b  +  c*d
Sometimes, we put more space around operators with lower precedence to aid in remembering precedences. You can do it too.

In the expression below, click the checkbox if the "parens" can be deleted without changing the meaning of the expression.

Then click the Check answer button.
Do as many as you want (at least 10) before hitting button Next.


Feedback

 


checked means () can be removed
|
|
  
Help | Glossary
© 2002 Copyright Cornell University