For example, there is a code in C:
if (a > 0) { if (b > 0) c = a; } else c = b; Is it possible to write this with a ternary operator?
In this case, I tried to go from the false branch mostly if, but it turns out that for the ternary there is not enough condition after the ":". How to be?