Q:

for loop ++ for something other than 1 in c

suppose I want to use the following for loop in c:
for(int i=0; i<10; i+3)
    {
    }

It wont let me. It will however let me do this:
for(int i=0; i<10; i++)
    {
    }

How do I increase the index by 3 instead of just 1?

A:

The increment/decrement expression, if used, needs to assign to i, not just generate a value.
for(int i=0; i<10; i+=3)
{}

