You would expect multiplication, for example, to have a higher precedence than addition.
例如,您期望乘法的优先级比加法高。
If you review the business rules detailed in the problem to solve, you'll notice that the rules for assigning a tests due date have a precedence order.
如果查看要解决的问题中详细的业务规则,您将注意到用于分配测试到期日期的规则具有优先顺序。
The logical operators have lower precedence than the individual comparison operators, which makes sense because the comparison has to be evaluated before the logical operator can be evaluated.
逻辑运算符的优先级低于单独的比较运算符,这一点意义重大,因为必须先计算比较运算符,然后才能计算逻辑运算符。
应用推荐