The Wayback Machine - https://web.archive.org/web/20240606140339/https://www.geeksforgeeks.org/difference-between-control-structure-and-control-statement/
Open In App

Difference between Control Structure and Control Statement

Last Updated : 02 Aug, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

1. Control Structure :
Control Structure, as name suggests, is basically a set of statements and control statements that are controlling their execution.

 

2. Control Statement :
Control Statement, as name suggests, is basically a statement that is used to determine control flow of set of statements. It makes decision on basis of condition provided by statement or on basis of values and logic.

 

Difference between Control Structure and Control Statement :

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 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.  

 


Similar Reads

Difference between Flow Control and Congestion Control
Flow Control and Congestion Control are traffic controlling methods for different situations. The main difference between flow control and congestion control is that, In flow control, rate of traffic received from a sender can be controlled by a receiver. On the other hand, In congestion control, rate of traffic from sender to the network is contro
4 min read
Difference between Numerical Control (NC) and Computer Numerical Control (CNC)
In today’s world each producing industries needs high accuracy product in less time. And this complexness of high accuracy in minimum time may be achieved by use of Numerical Control (NC) and CNC(Computer Numerical Control) machine. Most folks don't recognize the fundamental distinction between these machines. Here we'll discuss regarding the funda
2 min read
Difference between Open-Loop Control System and Closed-Loop Control System
Control System is a system in which the behavior of the system is determined by a differential equation. It manages the devices and the systems using control loops. There are Open-Loop Control System and Closed-Loop Control System. Open-Loop Control System is used in applications in which no feedback and error handling are required. It is simple an
3 min read
Difference between Flow Control and Error Control
1. Flow Control : It is an important function of the Data Link Layer. It refers to a set of procedures that tells the sender how much data it can transmit before waiting for acknowledgment from the receiver. Purpose of Flow Control : Any receiving device has a limited speed at which it can process incoming data and also a limited amount of memory t
3 min read
Difference between Single Bus Structure and Double Bus Structure
1. Single Bus Structure: In a single bus structure, one common bus is used to communicate between peripherals and microprocessors. It has disadvantages due to the use of one common bus. 2. Double Bus Structure: In a double bus structure, one bus is used to fetch instructions while other is used to fetch data, required for execution. It is to overco
2 min read
Difference between Row level and Statement level triggers
Triggers are defined as stored programs which are automatically executed whenever some events such as CREATE, ALTER, UPDATE, INSERT, DELETE takes place.They can be defined on a database, table, view with which event is associated. Triggers can be broadly classified into Row Level and Statement Level triggers. Broadly, these can be differentiated as
1 min read
Difference between Statement and CallableStatement
1. Statement : It is used for accessing your database. Statement interface cannot accept parameters and useful when you are using static SQL statements at runtime. If you want to run SQL query only once than this interface is preferred over PreparedStatement. Example - //Creating The Statement Object Statement GFG = con.createStatement(); //Executi
2 min read
Difference between Statement and PreparedStatement
1. Statement : It is used for accessing your database. Statement interface cannot accept parameters and useful when you are using static SQL statements at runtime. If you want to run SQL query only once then this interface is preferred over PreparedStatement. Example - //Creating The Statement Object Statement prep_statement = con.createStatement()
2 min read
Difference between break and continue statement in C
In this article, we will discuss the difference between the break and continue statements in C. They are the same type of statements which is used to alter the flow of a program still they have some difference between them. break statement: This statement terminates the smallest enclosing loop (i.e., while, do-while, for loop, or switch statement).
3 min read
Difference Between High-level Data Link Control (HDLC) and Point-to-Point Protocol (PPP)
The main difference between High-level Data Link Control (HDLC) and Point-to-Point Protocol (PPP) is that High-level Data Link Control is the bit-oriented protocol, on the other hand, Point-to-Point Protocol is the byte-oriented protocol. Another difference between HDLC and PPP is that HDLC is implemented by Point-to-point configuration and also mu
3 min read