Important points on control flow:-
β’A computer program is a set of statements or instructions to perform a specific task.
β’There are two kinds of statements used in C++, viz Null and Compound Statement.
β’Control Statement are statements that alter the sequence of flow of instaructions.
β’There are three kinds of control statement used in C++. (1) Sequence Statement (2) Selection Statement (3) Iteration Statement
β’If and Switch are Selection Statements,
β’The Conditional Operator is an alternative for βif else Statement.
β’The Switch Statment is a multi-way branching statement.
β’Iteration Statement (looping) is use to execute a set of statements repeatedly until a condition is satisfied.
β’There are three kinds Iteration Statements supported. (1) for (2) While (3) doWhile.
β’ In C++ three Jump Statment are used
(1) goto
(2) break
(3) continue