Compare and contrast the break and continue statements.

What will be an ideal response?

The break and continue statements alter the flow of control through a control statement.
The break statement, when executed in one of the repetition statements, causes
immediate exit from that statement. Execution typically continues with the first
statement after the control statement. In contrast, the continue statement, when executed in a repetition statement, skips the remaining statements in the loop body andproceeds with the next iteration of the loop. In while and do…while statements, the application evaluates the loop-continuation test immediately after the continue
statement executes. In a for statement, the increment expression executes, then the
application evaluates the loop-continuation test.

Computer Science & Information Technology

You might also like to view...

When a SmartArt graphic's height or width is changed the width is resized proportionally

Indicate whether the statement is true or false

Computer Science & Information Technology

A "bare metal" VMM requires a host operating system

Indicate whether the statement is true or false

Computer Science & Information Technology