When you see the syntax of for loop which is
for(initialize;condition;inc/decrement)
the statement in initialize block only executes once at the starting of for loop that’s why it is increamenting i by 2.
Hopefully that help
solved Output of the c program [closed]