Hi guys, we will discuss the category of Operators in this section. This section is essential as a short note which contains 2 or 3 marks. So without wasting time let's get started.
The operators we are discussed mainly divided into three types which are
- Unary Operator
- Binary Operator
- Ternary Operator
1. Unary Operator:
- These are the operators who work on a single operand.
- Increment and decrement operators, and sizeof operator are their examples.
2. Binary Operator:
- These are the operators who work on two operands.
- Examples: Arithmetic Operators & Relational Operators etc.
3. Ternary Operators:
- These are the operators who work on three operands.
- This is performed with a conditional operator ( ? : )