|
An applicant must meet two conditions:
A good answer might be:
| ||||||||||||||||||||
Precidence of Logical Operators
You have seen that when expressions mix && and || that evaluation must be done in the correct order. Parentheses can be used to group operands with their correct operator, just like in arithmetic. Also like arithmetic operators, logical operators have precidence that determines how things are grouped in the absence of parentheses. In an expression, the operator with the highest precidence will be grouped with its operand(s) first, then the next highest operator will be grouped with its operands, and so on. If there are several logical operators of the same precidence, they will be examined left to right.
For example, say that It is common for programmers to use parenthese to group operands together rather than rely on logical operator precidence rules. | ||||||||||||||||||||
QUESTION 16:Add parentheses to the following to show how operator precidence will group things: Click Here after you have answered the questiona > b && 45 <= sum || sum < a + b && d > 90 |