C supports various operators to perform different kind of operations. With C operators, you can do arithmetic, compare data, modify variables, combine relationship logically... etc. C operators operates on one or more operands to produce a value.Operators taking just one operand are called unary operators.Operators requiring two operands are called binary opeartors.
-
C supports almost common arithmetic operators such as +,-,* , / and modulus operator %
-
C assignment operators are used to assigned the value of a variable or expression to a variable.
-
C provides you six bitwise operators including AND, inclusive OR, exclusive OR, left shift, right shift and one's complement for bit manipulation.
-
C increment operators are used to add or substract 1 from a variable. C increment operators support in both prefix and postfix forms.
-
C logical operators enable to combine relational operators or logical operators into one boolean result. C supports the negation (!), logical AND (&&), and logical OR (||).
-
C provides you a list of relational opeartors to allows you to compare data. The relational operators enable you to check whethere two variables or expressions are equal, not equal, which one is greater or less than other...etc.
-
C ternary operator is sometimes called conditional operator or trinary operator because it is a shorthand of combination of the if-else and return statement and has three operands.