Control Structures in C++

- February 14, 2018
Control structure is a statement that is used to control the flow of execution in a
program. These control structures are
very helpful in implementing the program
logic. Using control structure in our program enable us to group individual instructions into a single logical unit with one entry point and one exit point.
Generally, program statements are execute one after the other in the order in which they are written. This process is known as sequential execution. In sequential execution of the program, no statement is skipped or executed more than once.
During the execution of the program, the execution control moves from one statement to next statement to take action on program statements.
The control structure is used to control the working of statements of the program. Such as either all statements will evaluate at once on the basis of certain condition or will evaluate one by one or will not be evaluated.
C++ provides features to control the flow of execution in a program. The statements that are used to control the flow of execution in a program are called control structures. In C++, there are three kinds of control structures:


Control structure diagram