当前位置:网站首页>C语言中的分支和循环语句归属
C语言中的分支和循环语句归属
2022-07-23 05:39:00 【rookieﻬ°】
了解问题之前,首先我们要知道什么是语句?
C语言是结构化的程序语言
- 顺序结构:就是按正常顺序走,比如人这一辈子平平淡淡过完,没有什么波折。
- 选择结构:如:if,switch,人这一辈子,充满了十字路口;
- 循环结构:while、for、do while,吃饭睡觉,每天都在重复,这就是循环。

C语言语句可分为5大类:
1.表达式语句
2.函数调用语句
3.控制语句
4.复合语句
5.空语句
循环语句和分支语句归属于哪个部分呢?
其实,分支和循环语句归属于控制语句,什么是控制语句呢?
控制语句用于控制程序的执行流程,以实现程序的各种结构方式(C语言支持三种结构:顺序结构、选择结构、循环结构),他们由特定的语句定义符组成,C语言有九种控制语句。
可分为以下三类:
- 条件判断语句也叫分支语句:if语句、switch语句;
- 循环执行语句:do while语句、while语句、for语句;
- 转向语句:break语句、goto语句、continue语句、return语句;
边栏推荐
- Install pyGame using CMD
- A usage exploration of entitymanagerfactory and entitymanager
- 【无标题】
- Five methods to prevent over fitting of neural network
- 同步发送短信验证码
- 【pyradiomics】bugFix:GLCM特征时:IndexError: arrays used as indices must be of integer (or boolean) type
- 【文献调研】在Pubmed上搜索特定影响因子期刊上的论文
- 给图片人脸部分加上马赛克
- The super simple face recognition API can realize face recognition in just a few lines of code
- When using cache in sprintboot, the data cannot be loaded
猜你喜欢
D2DEngine食用教程(2)———绘制图像

Master slave synchronization step read / write separation + self encountered error sharing
![[部署]presto-server-0.261.tar.gz的集群部署和启动](/img/37/1185b2321b003a7793c8c37891008c.png)
[部署]presto-server-0.261.tar.gz的集群部署和启动

Install pyGame using CMD

plsql创建Oracle数据库报错:使用Database Control配置数据库时,要求在当前Oracle主目录中配置监听程序 必须运行Netca以配置监听程序,然后才能继续。或者

Spark common interview questions sorting

防止神经网络过拟合的五种方法

大厂面试机器学习算法(0):特征工程 | 数据预处理

sprintboot中使用缓存时候,数据加载不出来

gbk编解码器无法解码的问题,有可能出题出在文件名上
随机推荐
JDBC的学习以及简单封装
Machine learning algorithm for large factory interview (6) time series analysis
请求数据获取与响应
img标签设置height和width无效
Hyperlink de underlined code
【uiautomation】键指令大全(以及三种调用方式)+常用鼠标动作+SendKeys+Inspect学习
安装企业版pycharm以及anaconda
View set and route
Database topics necessary for interview
Alipay DTS architecture
With only 5000 lines of code, AI renders 100 million landscape paintings on v853
机器学习中的矩阵向量求导
【无标题】
Redis数据库和项目框架
框架介绍mvt
First meet flask
Getting started with RPC and thrift
js的call、apply、bind
D2DEngine食用教程(2)———绘制图像
Using pytorch to realize the flower recognition classifier based on VGg 19 pre training model, the accuracy reaches 97%