1.

Differentiate the break and continue statement?

Answer»

Break Statement:

1. The break statement will terminate the loop early.

2. The break statement is executed and the loop is terminated.

Continue Statement:

1. The continue statement will skip back to the loop condition check.

2. When the continue statement is executed, the current is iteration of the enclosing loop is terminated.



Discussion

No Comment Found