The ?: operator (ternary operator) is an infix operator because it appears between its three operands: condition ? value_if_true : value_if_false. Binary operators have two operands, while prefix/postfix operators have one operand and appear before or after it.