3 ms·
The C (and C++) ternary operator is usually used in a more convenient way to handle multiple cases: selected_value = condition_1 ? value_1 : conditio
by geezerjay 8y ago
The C (and C++) ternary operator is usually used in a more convenient way to handle multiple cases:
selected_value =
condition_1 ? value_1 :
condition_2 ? value_2 :
value_3