23 points · by n_ham · 11y ago · 3 comments
I don't understand this takeaway. Did the author forget a word?
is equivalent to:
a = b > 1 ? 1 : 2
in other languages. Meaning that the if/else statement can be used as an expression that can provide an rvalue of integer type.