The C language supports a rich set of built-in operators. An operator is a symbol that tells the compiler to perform a certain mathematical or logical operations, based on the values provided to the operator.
Operators are used in programs to manipulate data and variables.
C Operators
C operators can be classified into the following types:
- Arithmetic operators
- Relational operators
- Logical operators
- Bitwise operators
- Assignment operators
- Conditional operators
- Special operators
Let’s understand each one of these operator types, one by one with working code examples.
What is an Operand?
An operand is a value on which any operator works. For example, when we say 4+5, here, numbers 4 and 5 are operands whereas + is an operator.
Different operators work with different numbers of operands like the +
operator requires two operands or values.