Loop Counter

A numeric variable used to track loop repetitions or positions.

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;
        }
    }
}

Level: Apprentice · More C# terms at this level

Updated

In other subjects