Increment Operator
noun
say it: “IN-kruh-ment OP-er-ay-ter” /ˈɪŋkrəmənt ˈɒpəreɪtər/
The ++ operator, which adds one to a number 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;
}
}
In a sentence
- “The loop uses the increment operator, count++, after each book.”
Level: Novice · More C# terms at this level
Updated