C++ Operators
Operators in C++.
C++ Operators
Operators are used to perform operations on variables and values.
C++ divides the operators into the following groups:
- Arithmetic operators: (+, -, *, /, %, ++, --) used for common math operations.
- Assignment operators: (=, +=, -=, etc.) used to assign values to variables.
- Comparison operators: (==, !=, >, <, >=, <=) used to compare two values, returning true or false.
- Logical operators: (&&, ||, !) used to determine the logic between variables or values.
- Bitwise operators: (&, |, ^, ~, <<, >>) used to operate on individual bits (advanced).