Which of the following is true about the while loop in C?
2025
Which of the following is true about the while loop in C?
- A.
Is used only when the number of iterations is known
- B.
Does not allow break statement
- C.
May never execute if the condition is false
- D.
Executes at least once even if the condition is false
Attempted by 289 students.
Show answer & explanation
Correct answer: C
A while loop is an entry-controlled loop in C. This means the condition is evaluated before the loop body executes. If the condition is false at the beginning, the loop body is skipped entirely. Therefore, a while loop may execute zero times.