# Increment Operator

The ++ operator, which adds one to a numeric variable.

## What does **Increment Operator** do in C#?

**Increment Operator** — The ++ operator, which adds one to a numeric variable.

```csharp
class Bakery
{
    int CookiesPerGuest(int cookies)
    {
        cookies++;
        return cookies / 2;
    }
}
```

Level: Novice · [More C# terms at this level](https://www.ask-codey.com/glossary/subjects/c-sharp/novice)

Updated: September 27, 2026

## In other subjects

- [Increment Operator in Java](https://www.ask-codey.com/glossary/increment-operator)

Source: https://www.ask-codey.com/glossary/increment-operator-c-sharp
