<s>《_w C_nx 陷阱_n 与_c 缺陷_n 》_w 运算_vn 符_Ng 优先级_n 错误_n ！_w</s>
<s>引用_v 楼主_n incident_a_nx 的_u 回复_vn :_w 书_n 上_f 说到_v 双目_n 运算_vn 符_Ng 优先级_n 的_u 时候_n ，_w 是_v 这样_r 的_u ：_w Next_nx come_nx the_nx true_nx binary_nx operators_nx ._w</s><s>The_nx arithmetic_nx operators_n have_a the_r highest_a precedence_l ,_w then_nx the_r shift_nx operators_n ,_w the_r relational_nx operators_n ,_w the_r logical_nx operators_n ,_w the_r assignment_nx operators_n ,_w and_r finally_nx the_r conditional_nx operator_n ._w</s><s>也就是说_l 赋值_n 运算_vn 符_Ng （_w =_w ）_w 优先级_n 是_v 高于_v 条件_n 运算_vn 符_Ng （_w ？_w</s><s>：）_w 的_u ，_w 往前_v 翻_v 了_u 下_q 书_n ，_w 明显_ad 不_d 对_a 啊_y ，_w 实际上_d 应该_v 是_v 这样_r ：_w ？_w</s><s>：_w assignments_nx ，_w 最后_f 应该_v 是_v 逗号_n 运算_vn 符_Ng 啊_y ，_w 难道_d 书_n 上_f 写错_v 了_y ？_w</s><s>看_v 了_u 下_v ，_w 好像_v 是_v 有_v 点_q 问题_n 。_w</s><s>我_r 估计_v 他_r 的_u 意思_n 是_v ，_w 对_p 下面_f 这_r 类_q 的_u 表达式_n ：_w 1_m <_w 2_m ?_w</s><s>1_m -_w 1_m <_w <_w 2_m :_w 3_m ;_w 运算_vn 符_Ng 的_u 优先_vn 级_n 是_v 1_m -_w 1_m 0_m <_w <_w 2_m 然后_c 是_v 1_m <_w 2_m 最后_f 是_v 返回_v 。_w</s><s>这_r 句_q 话_n ：_w Next_nx come_nx the_nx true_nx binary_nx operators_nx ._w</s><s>The_nx arithmetic_nx operators_n have_a the_r highest_a precedence_l ,_w then_nx the_r shift_nx operators_n ,_w the_r relational_nx operators_n ,_w the_r logical_nx operators_n ,_w the_r assignment_nx operators_n ,_w and_r finally_nx the_r conditional_nx operator_n ._w</s><s>改成_v Next_nx come_nx the_nx true_nx binary_nx operators_nx ._w</s><s>The_nx arithmetic_nx operators_n have_a the_r highest_a precedence_l ,_w then_nx the_nx shift_nx operators_n ,_w the_nx relational_nx operators_n ,_w the_r logical_nx operators_n ,_w and_c finally_nx the_r conditional_nx operator_n ._w</s><s>就_d 对_a 了_y 。_w</s><s>或者_c 向_p 你_r 说_v 的_u 一样_a ，_w 改成_v ：_w Next_nx come_nx the_nx true_nx binary_nx operators_nx ._w</s><s>The_nx arithmetic_nx operators_n have_a the_r highest_a precedence_l ,_w then_nx the_r shift_nx operators_n ,_w the_r relational_nx operators_n ,_w the_r logical_nx operators_n ,_w the_r conditional_nx operator_n ,_w the_r assignment_nx operators_n ,_w and_c finally_nx the_nx comma_nx operator_n ._w</s>
