---
title: 3.1 Arithmetic Operators
description: "Arithmetic operators perform mathematical operations on numeric values. C provides operators for addition, subtraction, multiplication, division, and remainder. ``` #include int main() { int a = 10; int b = 3; printf(\"Addition: %dn\", a + b); printf(\"Subtraction: %dn\", a -…"
url: "https://edcret.in/docs/c-programming/operators-and-expressions/3-1-arithmetic-operators/"
updated: "2026-09-07"
category: C Programming / Operators and Expressions
---

# 3.1 Arithmetic Operators

Arithmetic operators perform mathematical operations on numeric values. C provides operators for addition, subtraction, multiplication, division, and remainder.

```
#include <stdio.h>

int main()
{
    int a = 10;
    int b = 3;

    printf("Addition: %dn", a + b);
    printf("Subtraction: %dn", a - b);
    printf("Multiplication: %dn", a * b);
    printf("Division: %dn", a / b);
    printf("Remainder: %dn", a % b);

    return 0;
}
```

### Example Output

```
Addition: 13
Subtraction: 7
Multiplication: 30
Division: 3
Remainder: 1
```

### Explanation

The arithmetic operators used here are:

| Operator | Operation | Example |
| --- | --- | --- |
| `+` | Addition | `a + b` |
| `-` | Subtraction | `a - b` |
| `*` | Multiplication | `a * b` |
| `/` | Division | `a / b` |
| `%` | Remainder | `a % b` |

Because both `a` and `b` are `int`, the division is integer division:

```
a / b
```

With `10 / 3`, the fractional part is discarded, producing `3`.

The `%` operator produces the remainder of integer division. Therefore:

```
10 % 3
```

produces `1`.

The `%` operator requires integer operands; it is not used for floating-point remainder calculations.
