C – break statement

break statement in C is mostly used in a switch statement to terminate the cases present in switch statement. It terminates the loop and transfers the execution process immediately to statement following the loop. The use of break statement in …

Read moreC – break statement

C- Loop control statement

Loop control statements are also known as Jump statement. The use of jump statement changes the state of execution. This statement help in exiting the loops statement. C supports three control statements. break statement continue statement goto break statement in …

Read moreC- Loop control statement

C – for loop

In C programming, for loop is a more efficient loop structure and is an entry-control loop. The iteration continues until the stated condition becomes false. It has three computing steps as shown in the syntax below. for loop Flowchart: Syntax of for …

Read moreC – for loop

C – Loops

There may be times in a program where a block of code needs to be executed several times sequentially. In such cases, Loops are used to execute a sequence of statements many times until the stated condition becomes false. Two …

Read moreC – Loops

C – if statement

An if statement consists of a Boolean expression followed by one or more statements.If the boolean expression is true, the block of code inside the if statement will be executed else not. Syntax Syntax of if statement in C: if statement Flowchart: Example …

Read moreC – if statement