for loop - statement with no effect

前端 未结 5 456
一整个雨季
一整个雨季 2021-01-28 06:36

For some reason I\'m getting an error: statement with no effect on this statement.

for (j = idx; j < iter; j + increment) {
    printf(\"from lo         


        
5条回答
  •  滥情空心
    2021-01-28 07:02

    You are getting that as an error? How cool, I wish my compiler did that. Basically j + increment will return the sum of those two, but j won't get modified so your loop would probably run forever.

提交回复
热议问题