Why is the ternary operator used to define 1 and 0 in a macro?
You are correct, in C it is tautologous. Both your particular ternary conditional and (1 > 0) are of type int. But it would matter in C++ though, in some curious corner cases (e.g. as parameters to overloaded functions), since your ternary conditional expression is of type int, whereas (1 > 0) is of type … Read more