当前位置:网站首页>The attribution of branch and loop statements in C language
The attribution of branch and loop statements in C language
2022-07-23 11:19:00 【rookieﻬ°】
Before understanding the problem , First of all, we need to know what a sentence is ?
C Language is a structured programming language
- Sequential structure : Just follow the normal order , For example, people spend their whole life in an ordinary way , There are no twists and turns .
- Selection structure : Such as :if,switch, All my life , Full of crossroads ;
- Loop structure :while、for、do while, Eat and sleep , It's repeated every day , This is the cycle .

C Language statements can be divided into 5 Categories: :
1. Expression statement
2. Function call statements
3. Control statement
4. Compound statement
5. Empty statement
Which part do loop statements and branch statements belong to ?
Actually , Branch and loop statements belong to Control statement , What is? Control statement Well ?
Control statement Used to control the execution flow of the program , In order to realize the various structures of the program (C The language supports three structures : Sequential structure 、 Selection structure 、 Loop structure ), They consist of specific statement Defiers ,C There are nine control statements in language .
It can be divided into three categories :
- Conditional judgment statements are also called branch statements :if sentence 、switch sentence ;
- Loop statement :do while sentence 、while sentence 、for sentence ;
- Turn to statement :break sentence 、goto sentence 、continue sentence 、return sentence ;
边栏推荐
猜你喜欢

大厂面试机器学习算法(5)推荐系统算法

The super simple face recognition API can realize face recognition in just a few lines of code

字典创建与复制

机器学习零散笔记:一些概念和注意

Error handling of "listener not started or database service not registered" in Oracle database creation
![[python flask notes 5] blueprint is easy to use](/img/0a/00b259f42e2fa83d4871263cc5f184.png)
[python flask notes 5] blueprint is easy to use

Web server failed to start. Port 8080 was already in use.
![[部署]presto-server-0.261.tar.gz的集群部署和启动](/img/37/1185b2321b003a7793c8c37891008c.png)
[部署]presto-server-0.261.tar.gz的集群部署和启动

C语言调试常见错误——简答

Spark common interview questions sorting
随机推荐
【Pyautogui学习】屏幕坐标、鼠标滚动
C语言中的流氓goto语句
对NLP中transformer里面decoder的理解
Spectral clustering | Laplace matrix
3.Flask 中的线程
JDBC Learning and simple Encapsulation
Sorting out common SQL interview questions and answers
【6.28】
Pycharm occupies C disk
[metric]使用Prometheus监控flink1.13org.apache.flink.metrics
C语言之二分查找法或折半查找法剖析(经典例题,经典解析)
RPC与thrift入门
[untitled]
Flask源码剖析(一)请求入口
check the manual that corresponds to your MySQL server version for the right syntax to use near ‘ord
【pyradiomics】bugFix:GLCM特征时:IndexError: arrays used as indices must be of integer (or boolean) type
shell/sh/bash的区别和基本操作
同步发送短信验证码
[pytho-flask笔记5]蓝图简单使用
Paging and filtering