On the basis of the role of operators, we have six types of operators: Arithmetic operators, Relational operators, logical operators, Bitwise operators, Assignment operators, and Miscellaneous operators.