Loop Counter

noun

say it: “LOOP KOWN-ter” /luːp ˈkaʊntər/

A number variable that counts the passes of a loop or tracks a position, often called i.

What is Loop Counter in C#?

Loop Counter — A numeric variable used to track loop repetitions or positions.

class Schedule
{
    void MarkDays(bool[] scheduled)
    {
        for (int day = 0; day < scheduled.Length; day++)
        {
            scheduled[day] = true;
        }
    }
}

In a sentence

  • “The loop counter i went from 0 to 3, one for each quarter.”

Level: Apprentice · More C# terms at this level

Updated

In other subjects