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

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.

主站蜘蛛池模板: 扶沟县| 布尔津县| 刚察县| 冀州市| 海宁市| 马公市| 海兴县| 白朗县| 丽江市| 马山县| 赣榆县| 吉林省| 中西区| 湖北省| 淮南市| 廊坊市| 宾阳县| 苗栗市| 贵定县| 黄山市| 娄烦县| 镇雄县| 牡丹江市| 正安县| 象山县| 佛山市| 隆子县| 旌德县| 盐亭县| 顺义区| 磐安县| 绥化市| 南汇区| 铁力市| 平度市| 青铜峡市| 南宫市| 天气| 通辽市| 浙江省| 长汀县|