My change is in line 18. (#23604)

Initialize----->start value
Condition---->stop value
Termination----->step value
pull/23887/head^2
kenbhatt 2018-12-07 14:39:16 +05:30 committed by Manish Giri
parent c0c3c4c624
commit bc65ccf919
1 changed files with 1 additions and 1 deletions

View File

@ -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.