Mention the similarity and difference between break and continue statements.
Question :
Mention the similarity and difference between break and continue statements.
Similarity: Both break and continue are jump statement.
Difference : The break statement terminates the entire loop body whereas continue statement forces the next iteration of the loop to take place, skipping any code following continue statement in the current iteration of the loop.