📜  控制结构和控制语句的区别

📅  最后修改于: 2021-09-14 02:42:43             🧑  作者: Mango

1.控制结构
顾名思义,控制结构基本上是一组控制其执行的语句和控制语句。

2. 控制声明:
控制语句,顾名思义,基本上是用于确定语句集的控制流的语句。它根据语句提供的条件或根据值和逻辑做出决定。

控制结构和控制语句的区别:

Control Structure

 Control Statement 

Its main purpose is to accommodate set-point changes and reject load disturbances in network.   Its main purpose is to determine or identify whether or not statements will be executed.  
It helps in changing flow of program, allows us to develop complex sets of instructions out of simpler building blocks, etc. It helps in making decisions, to execute tasks continuously, etc.  
It generally helps in achieving effective control system. It generally helps in controlling flow of program. 
It is used to determine logical order of program instructions.   It is used to tell program whether to execute statement in a condition or not.  
It simply describes tasks that program is has to perform.   It simply controls execution of other statements. 
Types of control structure includes sequential control, selection control, and repetition control.   Types of control statement includes if statement, loop, switch statement, etc.