precedence of operators 操作符的优先级
The associativity of an operator defines the order in which operators of the same precedence are grouped (right-to-left or left-to-right).
操作符的结合性定义了相同优先级操作符组合的顺序(从右至左或从左至右)。
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.
逻辑运算符的优先级低于单独的比较运算符,这一点意义重大,因为必须先计算比较运算符,然后才能计算逻辑运算符。
The actual precedence of the logical operators is given by the order these operators are presented in Table 2.
逻辑运算符的实际优先级就是表2中罗列这些运算符的顺序。
应用推荐