In a while loop, forgetting to update the condition can lead to a/an ________ loop.

  • Infinite
  • Endless
  • Eternal
  • Unstoppable
In a while loop, if you forget to update the condition, it can lead to an "infinite" loop, where the loop continues to execute indefinitely. This can cause the program to hang or become unresponsive. It's important to ensure that the loop's condition is updated to eventually become false.
Add your answer
Loading...

Leave a comment

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