What are Operators?
Operators are the symbol in C programming that defines the operation between the operands. Operators operates on the operands. Operators are the special symbols that helps to perform Mathematical and Logical operations on the operands.
Types of Operators in C
Operators in C Language are divided in three types on the basis of the number of operands they use.
1. Unary Operators
Unary Operators are the operators that operates on only one operand. For example ++
, --
, etc.
2. Binary Operators
Binary Operators are those operators that operates on two operands. For example +
, *
, =
, etc.
3. Ternary Operators
Ternary Operators are those operators that operates on three operands. For example ?:
.
The operators Unary, Binary and ternary are further categorized into following types.
Please click on below links to read more about them.
- Arithmetic Operators
- Relational Operators
- Logical Operators
- Assignment Operators
- Bitwise Operators
- Conditional Operator
- Increment/Decrement Operator
- Special operators