你看到它用于for循环语句,但它在任何地方都是合法的语法.您在其他地方找到了什么用途,如果有的话?
c c++ comma-operator
int qempty() { return (f == r ? 1 : 0); }
在上面的代码片段中," ? "是什么意思?我们可以用什么替代它?
c++ operators ternary-operator
c++ ×2
c ×1
comma-operator ×1
operators ×1
ternary-operator ×1