Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Control Structures in C++

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:

  • Sequence Structure
  • Selection Structure
  • Repetition Structure




This post first appeared on Programming Explain, please read the originial post: here

Share the post

Control Structures in C++

×

Subscribe to Programming Explain

Get updates delivered right to your inbox!

Thank you for your subscription

×