Flow of Control
In the previous chapters you learnt the basic concepts of C++ programming such as variables, constants, operators, data types etc. Generally a program executes its statements sequentially from beginning to end. However, such a strict sequential ordering is restrictive and less useful. There are lot of situations where it is useful to decide the code block executed on the basis of a certain condition. In such situations, the flow of control jumps from one part of the code to another segment of code. Program statements that cause such jumps are called as “Control flow”. This chapter deals with the basics of control structures such as “Selection”, “Iteration” and “Jump” statement.