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

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.

主站蜘蛛池模板: 定兴县| 海阳市| 汾阳市| 鹰潭市| 阿尔山市| 孟连| 壤塘县| 余江县| 兰州市| 涡阳县| 阿克陶县| 广东省| 耿马| 衢州市| 汶川县| 安图县| 德化县| 盐源县| 科技| 视频| 启东市| 岳池县| 尖扎县| 泸水县| 深泽县| 额尔古纳市| 吴忠市| 且末县| 宁城县| 敦化市| 西乌珠穆沁旗| 监利县| 玉山县| 磐安县| 澄江县| 红原县| 修水县| 鸡泽县| 海原县| 周口市| 内丘县|