Mention the four important part of looping.

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

  • Sree
  • 02 Apr
  • 3861 Views
  • 1 Answer
Your 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