for loop - statement with no effect

前端 未结 5 513
一整个雨季
一整个雨季 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:00

    You probably meant to write j += increment instead of j + increment.

提交回复
热议问题