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

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.

主站蜘蛛池模板: 武鸣县| 丹寨县| 武隆县| 莆田市| 贺兰县| 昌邑市| 邯郸县| 吴桥县| 德江县| 乐安县| 吐鲁番市| 定西市| 高密市| 宁陕县| 明光市| 肥乡县| 东台市| 汝阳县| 攀枝花市| 延寿县| 虞城县| 海南省| 海林市| 莲花县| 宜黄县| 田林县| 大悟县| 广昌县| 海伦市| 怀安县| 锡林郭勒盟| 莲花县| 东港市| 游戏| 太仆寺旗| 义乌市| 五大连池市| 油尖旺区| 彭水| 鹤山市| 新绛县|