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

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.

主站蜘蛛池模板: 黄浦区| 文登市| 南通市| 黑水县| 离岛区| 错那县| 闽清县| 玛沁县| 襄垣县| 兴文县| 根河市| 丽江市| 喀喇沁旗| 楚雄市| 盖州市| 奉节县| 文成县| 阿拉善左旗| 永登县| 阿巴嘎旗| 江山市| 诸暨市| 和林格尔县| 颍上县| 上饶市| 富源县| 清苑县| 东港市| 乳源| 贡山| 仙游县| 黄大仙区| 左权县| 固阳县| 德惠市| 阜新市| 温宿县| 黎平县| 福州市| 隆德县| 北流市|