当前位置:网站首页>Small turtle C (Chapter 5 loop control structure program 567) break and continue statements
Small turtle C (Chapter 5 loop control structure program 567) break and continue statements
2022-07-28 07:03:00 【W.934】
break sentence
break Statement can be used to jump out of the loop body , That is, end the cycle ahead of time , Then execute the following statement of the loop .
General form :
break;
break Statements cannot be used for loop statements and switch In any statement other than a statement .
Be careful :
1)break The statement of if-else The conditional statement of does not work .
2) In a multi-level cycle , One break The statement just jumps out one level .
continue sentence
The function is to end this cycle , That is, skip the following unexecuted statements in the loop body , Then, the next decision on whether to execute the loop .
General form :
continue;
continue Statement and break The difference between sentences :
continue Statement only ends the loop , Instead of terminating the entire loop .
边栏推荐
- MySQL主从
- Vmware workstation configuration net mode
- 防火墙——iptables防火墙(四表五链、防火墙配置方法、匹配规则详解)
- DHCP原理与配置
- DOM operation cases
- Wechat applet custom compilation mode
- MySQL installation and use
- Icc2 analysis timing artifact analyze_ design_ violations
- Teach you three steps to complete the construction of the test monitoring system hand in hand
- On cookies and session
猜你喜欢

RAID磁盘阵列

raid磁盘阵列

Firewall - iptables firewall (four tables and five links, firewall configuration method, detailed explanation of matching rules)

DOM -- event chain, event bubble and capture, event proxy

Esxi community network card driver

Network - transport layer (detailed version)

SSH服务配置

Technology sharing | do you know the functions of the server interface automated testing and requests library?

Iptables firewall

MOOC翁恺C语言第八周:指针与字符串:1.指针2.字符类型3.字符串4.字符串计算
随机推荐
Esxi community network card driver
Results fill in the blank. How many days of national day are Sundays (solved by pure Excel)
Detailed explanation of LNMP construction process
MOOC翁恺C语言 第六周:数组与函数:1.数组2.函数的定义与使用3.函数的参数和变量4.二维数组
Network - network layer
Array to linked list
shell脚本——编程条件语句(条件测试、if语句、case分支语句、echo用法、for循环、while循环)
RAID磁盘阵列
Vmware workstation configuration net mode
DNS域名解析
On cookies and session
[learning notes] knowledge management
Ubuntu18.04搭建redis集群【学习笔记】
DHCP principle and configuration
Test interview questions collection (V) | automated testing and performance testing (with answers)
Hdu-5806-nanoapelovesequence Ⅱ (ruler method)
Blue bridge code error ticket
[learning notes] drive
Applets: WSX scripts
OSI seven layer model