- Get link
- X
- Other Apps
OPERATORS IN C AND C++
There are 4 types of operators in C and C++. They are:
1. ARITHMETIC OPERATOR
Arithmetic operators are used to perform common mathematical operations. Arithmetic operators are +, -, /, *, --, ++, % etc.
2. ASSIGNMENT OPERATOR
Assignment operators are used to assign values to variables. Some assignment operators are =, +=, -=, *=, /=, %=, &=, |=, ^=, >>=, <<= etc.
3. COMPARISON OPERATOR
Comparison operators are used to compare two values. Some of the comparison operators are ==, !=, >, <, <=, >= etc.
4. LOGICAL OPERATOR
Logical operators are used to determine the logic between variables and values. Some of the logical operators are &&, ||, ! etc.
- Get link
- X
- Other Apps
