The associativity of an operator defines the order in which operators of the same precedence are grouped (right-to-left or left-to-right).
操作符的结合性定义了相同优先级操作符组合的顺序(从右至左或从左至右)。
Remember that you may need to consider associativity of the operators in order to determine the answer in the case of expressions involving more than one operator.
记住,你可能需要考虑操作符的结合性,以便在表达式含有多个操作符的情况下确定答案。
Many programming language manuals provide a table of operator precedence and associativity .
大多数程序设计语言提供一个操作条符的优先级和结合性的表格。
The precedence (Section 5.10.1, p. 168), associativity, or number of operands of an operator cannot be changed.
操作符的优先级(第5.10.1节)、结合性或操作数目不能改变。
The comma operator has left-to-right associativity.
逗号运算符具有从左向右的关联性。
The comma operator has left-to-right associativity.
逗号运算符具有从左向右的关联性。
应用推荐