Mention the four important part of looping.

Explain in detail the four important part of looping in detail with explain.


1 Answer
1-1 of  1
1 Answer
  • The four important type of loop is :
    The setup: Usually the setup involves declaring and initializing an incrementvariable. This generally occurs immediately before the while.
    The test expression: The expression within the while loop that will cause the program to either execute the loop or exit and continue on. This always occurs within the parentheses following the keyword while.
    The body: This is the code within the braces.
    The increment: This is where the increment variable is incremented. This usually occurs at the end of the body.
    0

C Programming
Practice Mock Test
C Programming