Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 C 中,以下是有效代码:
if ((a, a+b, a*b) >= 0) { .... }
(a, a+b, a*b)零件有特殊名称吗?
(a, a+b, a*b)
x, y称为逗号表达式。
x, y
,在 C 中称为逗号运算符,与.(x, y, z)相同((x, y), z)。
,
(x, y, z)
((x, y), z)
它不能与分隔函数参数且不是逗号运算符的逗号混淆。