My change is in line 18. (#23604)
Initialize----->start value Condition---->stop value Termination----->step valuepull/23887/head^2
parent
c0c3c4c624
commit
bc65ccf919
|
@ -17,7 +17,7 @@ for ( init; condition; increment ) {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
The `for` loop consists of 3 sections, the initialization section, a specific condition and the incremental or decremental operation section. These 3 sections control the `for` loop.
|
The `for` loop consists of 3 sections, the initialization section(start value), a specific condition(stop value) and the incremental or decremental operation section(step value). These 3 sections control the `for` loop.
|
||||||
|
|
||||||
The initialization statement is executed only once. Then, the test expression is evaluated. If the test expression is false (0), for loop is terminated. But if the test expression is true (nonzero), codes inside the body of for loop is executed and the update expression is updated. This process repeats until the test expression is false.
|
The initialization statement is executed only once. Then, the test expression is evaluated. If the test expression is false (0), for loop is terminated. But if the test expression is true (nonzero), codes inside the body of for loop is executed and the update expression is updated. This process repeats until the test expression is false.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue