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

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.

主站蜘蛛池模板: 景谷| 钦州市| 沂水县| 襄城县| 滕州市| 舞阳县| 长岭县| 新平| 临澧县| 集贤县| 特克斯县| 河间市| 陕西省| 贵港市| 宝清县| 静安区| 伊宁市| 灌云县| 蓬安县| 林甸县| 耒阳市| 屏东县| 宁津县| 肇庆市| 固安县| 泰宁县| 天峨县| 泸水县| 屯门区| 永清县| 冕宁县| 宁明县| 揭阳市| 蓬安县| 湛江市| 西安市| 喜德县| 巩义市| 舟山市| 车险| 南川市|