In this tutorial, you will learn about Operators in C++ programming language, different categories of operators, and operators in each category with tutorials for each of the operators.
C++ Operators
C++ Operators are symbols that take one or two operands, perform a specific action on these operands, and return the result.
Operators can be classified into groups like Arithmetic, Assignment, Logical, Relational, Bitwise, and Ternary Operators. The following tutorials cover each of these operator groups in detail.
Arithmetic Operators
Arithmetic operators are used to perform common operations like addition, subtraction, multiplication, division, etc.
The following are the list of detailed tutorials for Arithmetic Operators.
Assignment Operators
Arithmetic operators are used to perform common operations like addition, subtraction, multiplication, division, etc.
The following are the list of detailed tutorials for Arithmetic Operators.
- C++ Simple Assignment Operator
- C++ Addition Assignment Operator
- C++ Subtraction Assignment Operator
- C++ Multiplication Assignment Operator
- C++ Division Assignment Operator
- C++ Remainder Assignment Operator
- C++ Bitwise AND Assignment Operator
- C++ Bitwise OR Assignment Operator
- C++ Bitwise XOR Assignment Operator
- C++ Left-shift Assignment Operator
- C++ Right-shift Assignment Operator
Logical Operators
Logical operators are used to perform boolean operations like AND, OR, and NOT.
The following are the list of detailed tutorials for Logical Operators.
Relational Operators
Relational operators are used to compare given values. These are also called Comparison Operators.
The following are the list of detailed tutorials for Logical Operators.
Bitwise Operators
C++ Bitwise Operators are used to perform bitwise operations on integer or char operands. Bitwise operations are done at bit level, meaning, operations like AND, OR, XOR, etc., are done between respective bits of the operands.
The following are the list of detailed tutorials for Logical Operators.
Conclusion
In this C++ Tutorial, we learned about different types of operators in C++.