For some reason I\'m getting an error: statement with no effect on this statement.
statement with no effect
for (j = idx; j < iter; j + increment) { printf(\"from lo
I think you meant j += increment, as j + increment doesn't actually alter j or indeed have any side effects at all - it is a statement with no effect, which is what the compiler is telling you
j += increment
j + increment
j