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

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.

主站蜘蛛池模板: 县级市| 泾川县| 普安县| 新源县| 磴口县| 浑源县| 温宿县| 江永县| 常州市| 于田县| 铜鼓县| 鲜城| 射阳县| 和田县| 庄河市| 江门市| 延庆县| 宜州市| 融水| 延津县| 北京市| 乐至县| 额尔古纳市| 绥德县| 松原市| 万年县| 都安| 永善县| 黄大仙区| 大安市| 昭苏县| 吴旗县| 娱乐| 乌审旗| 贵南县| 台中市| 曲松县| 宁晋县| 天水市| 柏乡县| 洱源县|