📜  控制结构和控制声明之间的区别

📅  最后修改于: 2021-06-28 08:42:19             🧑  作者: 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.