Computer Science, asked by SƬᏗᏒᏇᏗƦƦᎥᎧƦ, 1 month ago

What is the difference between break and continue statements when they occur in a loop? ):​

Answers

Answered by Anonymous
7

Explanation:

Break statement resumes the control of the program to the end of loop and made executional flow outside that loop. Continue statement resumes the control of the program to the next iteration of that loop enclosing 'continue' and made executional flow inside the loop again.

sad kyu ho yaar

Answered by Oreki
1

 \begin{tabular}{ m | m  } \textsf{\textbf{break}} & \textsf{\textbf{continue}}\\\footnotesize{ Terminates the l\symbol{111}op.} & \footnotesize{Continues the l\symbol{111}op from the next iteration.}\\\footnotesize{Leaves the l\symbol{111}op block completely.} & \footnotesize{Skips the remaining statements in the l\symbol{111}op.} \\ \footnotesize{Used in the switch block to prevent fall-through.} & \footnotesize{No use inside the switch block.}\\ \end{tabular}  

Similar questions