2078 4

BIT102 ยท 2078 ยท 5 marks

How break statement is different from continue statement. Explain with examples?

How break statement is different from continue statement. Explain with examples? [5]

C ProgrammingChapter 4: Control StructuresBreak and continue statements

The break statement is used to immediately terminate the loop (or switch) in which it appears. When break is executed, the program control jumps to the first statement after the loop. Output: The loop stops completely when i == 5. --- The continue statement is used to skip the current iteration o...