Avoid the use of the comma operator except for very disciplined use in the control part of for statements.
避免使用逗号操作符,除非在特定的for语句的控制部分。
这是一个逗号操作符。
The comma operator has left-to-right associativity.
逗号运算符具有从左向右的关联性。
If the left expression to comma-operator has no side effects, the compiler might omit code generation for the expression.
如果逗号运算符左侧的表达式没有任何副作用,则编译器可能不再生成该表达式的代码。
If the left expression to comma-operator has no side effects, the compiler might omit code generation for the expression.
如果逗号运算符左侧的表达式没有任何副作用,则编译器可能不再生成该表达式的代码。
应用推荐