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.

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

Level: Novice · More C# terms at this level

Updated

In other subjects