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

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.

主站蜘蛛池模板: 无棣县| 阳江市| 额敏县| 永州市| 江都市| 东丽区| 渝中区| 邹城市| 普安县| 静乐县| 云浮市| 赞皇县| 菏泽市| 宣恩县| 洛扎县| 乐亭县| 濉溪县| 县级市| 曲靖市| 宜兰县| 互助| 洪泽县| 霞浦县| 绥中县| 东海县| 铅山县| 莱芜市| 内黄县| 通许县| 闽清县| 大庆市| 礼泉县| 兴义市| 英德市| 滦南县| 红原县| 梨树县| 沽源县| 木兰县| 合江县| 应用必备|