The only ternary operator in C is code example Example: c ternary operator condition ? value_if_true : value_if_false