Arithmetic Operators
Types of Arithmetic Operators in C++
There are
five types of arithmetic operators in C++. Arithmetic operators are binary
operators as they take two operands.
- Addition (+)
- Subtraction (-)
- Multiplication (*)
- Division (/)
- Modulus (%)
Precedence of operators
Precedence of operators means which arithmetic operator has higher precedence to execute and which operator has lower precedence. As division and multiplication have a higher priority to execute than subtraction and addition.
Post a Comment