I tried to do the following
i=0;
if (i++ % Max_Col_items == 0 && i !=0)
{
}
and discovered that it increased i
in the middle
i % Max_Col_items == 0;
i=i+1;
i !=0;
when I though it would add increase i
in the end:
i % Max_Col_items == 0;
i !=0;
i=i+1;
Can any one find explanation of how i++
works in C#?