English

List the differences between break and continue statements. - Computer Applications

Advertisements
Advertisements

Questions

List the differences between break and continue statements.

Continue statement is used only in theloop statement. 

Distinguish Between

Solution

S. No. Break Continue
1. Break statement is used to terminate a block in which it exists. Continue statement is used to move the control to the next iteration of the loop ignoring other statements.
2. Break statement can be used in switch-case as well as in loop statements. Continue statement is used only in the loop statement.
shaalaa.com
Control Structure
  Is there an error in this question or solution?
Chapter 6: Control Structures - Evaluation [Page 88]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 12 TN Board
Chapter 6 Control Structures
Evaluation | Q 5. | Page 88
Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.1 Nested Loop
Review Insight | Q 3. | Page 143
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×