Which part of a "for" loop is executed only once, when the loop starts?

  • Initialization
  • Condition
  • Increment
  • Body of the loop
The part of a "for" loop that is executed only once, when the loop starts, is the initialization. It is where you define and initialize loop control variables. The condition is checked before each iteration, the increment is executed after each iteration, and the body of the loop contains the code that is executed repeatedly until the condition is false.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *