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

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.

主站蜘蛛池模板: 旌德县| 石棉县| 建德市| 平顶山市| 县级市| 苍山县| 宝鸡市| 内丘县| 青海省| 汾阳市| 襄汾县| 石景山区| 连南| 丹凤县| 乐昌市| 宁化县| 墨江| 德江县| 太康县| 迭部县| 英山县| 秦皇岛市| 新平| 衡东县| 隆德县| 故城县| 阳信县| 五家渠市| 巴林左旗| 马山县| 自治县| 论坛| 潜山县| 永泰县| 新郑市| 保德县| 阿勒泰市| 贵州省| 黄龙县| 巴彦淖尔市| 即墨市|