In this tutorial, we will learn about different Arithmetic Operators available in C++ programming language and go through each of these Arithmetic Operators in detail, with the help of examples.

## C++ Arithmetic Operators

Arithmetic Operators are used to perform common mathematical operations like addition, subtraction, multiplication, division, etc.

## Arithmetic Operators

The following table specifies symbol, example, and description for each of the Arithmetic Operator in C++.

## Examples

`+` operator computes the addition of the two operands and returns the result.

main.cpp

```#include <iostream>
using namespace std;

int main() {
int a = 12;
int b = 7;

int sum = a + b;

cout << "Addition : " << sum << endl;
}```

Output

```Addition : 19
Program ended with exit code: 0```

### C++ Subtraction

`-` operator computes the difference of right operand from left operand and returns the result.

main.cpp

```#include <iostream>
using namespace std;

int main() {
int a = 12;
int b = 7;

int diff = a - b;

cout << "Subtraction : " << diff << endl;
}```

Output

```Subtraction : 5
Program ended with exit code: 0```

### C++ Multiplication

`*` operator computes the product of two operands and returns the result.

main.cpp

```#include <iostream>
using namespace std;

int main() {
int a = 12;
int b = 7;

int product = a * b;

cout << "Multiplication : " << product << endl;
}```

Output

```Multiplication : 84
Program ended with exit code: 0```

### C++ Division

`+` operator computes the division of first operand with second operand and returns the quotient.

main.cpp

```#include <iostream>
using namespace std;

int main() {
int a = 16;
int b = 7;

int div = a / b;

cout << "Quotient : " << div << endl;
}```

Output

```Quotient : 2
Program ended with exit code: 0```

### C++ Modular Division

`%` operator computes the division of the given operands and returns the remainder.

main.cpp

```#include <iostream>
using namespace std;

int main() {
int a = 13;
int b = 5;

int modulo = a%b;

cout << "Remainder : " << modulo << endl;
}```

Output

```Remainder : 3
Program ended with exit code: 0```

### C++ Increment

`++` operator increments the value of the operand by one.

main.cpp

```#include <iostream>
using namespace std;

int main() {
int a = 12;
++a;
cout << "Incremented value : " << a << endl;
}```

Output

```Incremented value : 13
Program ended with exit code: 0```

### C++ Decrement

`++` operator decrements the value of the operand by one.

main.cpp

```#include <iostream>
using namespace std;

int main() {
int a = 12;
--a;
cout << "Decremented value : " << a << endl;
}```

Output

```Decremented value : 11
Program ended with exit code: 0```