Sequential Control Statements

A statement ensures that the instructions(or statements) are executed in the same order in which they appear in the program.

By default system executes the statements in the program in sequential order. These statements does not include use of any condition or any expression to transfer control flow to another part of the program.

It will execute all the statements in same order as they are appear in the program.


2.void main()
4. cout<<"Hello World"<<endl;
5. cout<<"This is just sequence of program";
6. getch();

here, in above example no any use of condition to transfer the flow of control. it will be executed line after line in sequence.

Related posts