Ask Question
29 November, 19:29

When the break statement is encountered in a loop, all the statements in the body of the loop that appear after it are ignored, and the loop prepares for the next iteration.

a) true

b) false

+5
Answers (1)
  1. 29 November, 21:45
    0
    False

    Explanation:

    The statement is false because all statement after break statement are ignored but along with that control move out of loop to other instructions and doesn't perform next iteration of loop. Forexample:

    for (i=0; i<10; i++) {

    if (some condition)

    break;

    x=y;

    y=z;

    }

    statement 1

    statement 2

    In above example after encountering break statement it will ignore statement after break plus it will not continue the next iteration and control move out of loop toward 'statement 1'
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “When the break statement is encountered in a loop, all the statements in the body of the loop that appear after it are ignored, and the ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers