Flow of Control in C++
Flow of control in cpp decides how the next few line of code will behave if these flow statements will be implemented. Flow of control is basically divided into two major parts
- Selection Statements
- Iteration Statements
Selection statements in C++
This type of statements check a condition and if the condition is satisfied then they run few line of code otherwise skip all that code.
Few selection Statements are – if statement, if -else statement, nested if statement , and switch statement.
Iteration Statements in C++
This type of statement runs a certain code unless untill the associated condition is true. Available iterative statements in C++ are – do while, while and for.
for more information on these, please download the attachment in , The attachment contains the definitions of all these statements with some sample programs + output screens.