4 ms·
Except that the ternary operator in C and C++ is not really an operator but a control flow construct.
by account42 5y ago
Except that the ternary operator in C and C++ is not really an operator but a control flow construct.
- HelloNurse 5y agoIt's an operator because it's functional (although often with side effects): three expressions go in and one expression goes out. Control flow constructs deal with statements instead.
- munificent 5y agoIt's an operator in the syntactic sense in the same way that "=", ".", and "||" are all operators.