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. Example: here, in above example no any use of condition to transfer the flow of control. it will be executed…

Read More

Control Statements in C++

Usually a program is not a linear sequence of instructions. It may repeat code or take decisions for a given path-goal relation. Most programming languages have control flow statements (constructs) which provide some sort of control structures that serve to specify order to what has to be done to perform our program that allow variations in this sequential order.The flow of execution of statements in a program is called as control. Control statement is a statement which controls flow of execution of the program. Control statements are classified into following…

Read More