Is there any operator in c which is both unary and binary?
binary-operators, c, unary-operator
Solution
The asterisk (*) can be used for dereferencing (unary) or multiplication (binary).
The ampersand (&) can be used for referencing (unary) or bitwise AND (binary).
The plus/minus signs (+/-) can be used for identity/negation (unary) or addition/subtraction (binary).
But, as others pointed out, those are symbols shared by different operators. Each of those operators have only one n-arity.
Problem
Is there any operator in c which is both unary and binary ? This question was asked in one of the interview.