for loop - statement with no effect

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

    It's clear you meant +=, but in the case that isn't true, the 'volatile' qualifier should prevent warnings.

提交回复
热议问题