The control flow refers to the order in which statements are evaluated or executed. C control flow refers to the statements that controls the flow of code. In this section, you'll find many control flow statements such as if-else statements, loop statements including do-while, for, and while, and break and continue statements.
-
C if statement is used when a unit of code need to be executed by a condition true or false.
-
C switch statement is a mutiway decisions that tests whether a variable or expression maches one of a number of constant integer vaues, and branches accordingly.
-
C while loop statement is used when you want to execute a block of code repeatedly with checked condition before making an iteration.
-
C do while loop statement allows you to execute code block in loop body at least one.
-
C for loop statement is usually used to execute code block for a specified number of times.
-
break statement is used to break any type of loop such as while, do while an for loop. break statement terminates the loop body immediately. continue statement is used to break current iteration.