C Control Flow

C if Statement

C if statement is used when a unit of code need to be executed by a condition true or false.

C Switch Statement

The switch statement allows you to select from multiple choices based on a set of fixed values for a given expression.

While Loop Statement

The while loop is used when you want to execute a block of statements repeatedly with checked condition before making an iteration.

C do-while Loop Statement

do while loop statement allows you to execute code block in loop body at least one.

C for Loop Statement

for loop statement is usually used to execute code block for a specified number of times.

C break and continue Statements

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.

source:cprogramlanguage.net

No comments:

Post a Comment