官术网_书友最值得收藏!

The for construct

The most popular loop in the language is the for loop, which handles complications by maintaining the number of executions of the loop efficiently within the block itself:

for (initialization; condition; update)
{
/* loop body */
}

The for loop has a few sections in the criteria. Each of these is separated by a semicolon (;). The first portion defines the index variable, which is executed once before executing the loop. The second portion is the condition that is executed in every iteration of the for loop. If the condition becomes false, the for loop doesn't continue its execution and stops. The third portion is also executed after every execution of the loop body and it manipulates the variable that was used in the for loop initialization and condition.

主站蜘蛛池模板: 北票市| 清水河县| 通许县| 临沧市| 阳西县| 西青区| 荥阳市| 藁城市| 聊城市| 荔波县| 青海省| 平凉市| 茂名市| 商丘市| 苍溪县| 双流县| 金川县| 武乡县| 靖西县| 洞头县| 宜良县| 兴安盟| 安福县| 洞头县| 屏东县| 漳浦县| 化德县| 新干县| 阿克| 嵊州市| 睢宁县| 大名县| 大庆市| 磐安县| 长治县| 安岳县| 利辛县| 贵阳市| 什邡市| 抚顺市| 伊通|