How many types of loops are in C Language?

0

How many types of loops are in C Language?

What is the loop?

The loop is a kind of programming feature that helps the perform the task N number of times. if the set of instructions performs N number of times then we use the loop.

How many Types of Loops?

  1. Entry Control Loop

    Entry Control Loop restrict the entry of the compiler by checking the conditions given in the loop starting. Two Entry control loops are available in C-Language.
    1. While Loop
      While Loop is the Entry Control Loop.In Which checking the condition before executing the while Read More...
    2. For Loop

      For Loop is the Entry Control Loop. Which has 3 sections i.e. Initialisation, Condition, Increment/Decrement and then For loop body starts The compiler comes to for loop and then the Initialisation part is executed and then checks the condition given in the condition portion. if the Condition is true then for loop body is executed otherwise not. Read More...

  2. Exit Control Loop

    Exit Control Loop executes at least once then the compiler checks the condition of the loop if the condition is true then the loop executes until the condition is not false Exit Control Loop has only one loop
    1. Do-While Loop
      Do-While Loop is the Exit Control Loop.In Which checking the condition after executing the Do-while body at least once. Read More...








Post a Comment

0Comments

We you have any doubt let me know :)

Post a Comment (0)
To Top