What will happen if the condition in a 'while' loop is initially false?

  • It will enter the loop and execute it once.
  • It will enter the loop and run indefinitely.
  • It will result in a compile-time error.
  • It won't enter the loop.
When the condition in a 'while' loop is initially false, the loop will not execute, and the program will proceed to the next statement.
Add your answer
Loading...

Leave a comment

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