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.


Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad