For a loop to be infinite in C++, the condition in a while loop must always evaluate to ______.

  • 0
  • 1
  • FALSE
  • TRUE
To create an infinite loop in C++, the condition in a while loop must always evaluate to true. This means that as long as the condition is true, the loop will continue executing indefinitely. Infinite loops can be useful in some scenarios but should be used with caution to avoid program hang or crashes.
Add your answer
Loading...

Leave a comment

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