English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

Write a note on the break statement. - Computer Science

Advertisements
Advertisements

Question

Write a note on the break statement.

Short Note

Solution

  • The break statement terminates the loop containing it.
  • Control of the program flows to the statement immediately after the body of the loop.
  • When the break statement is executed, the control flow of the program comes out of the loop and starts executing the segment of code after the loop structure.
  • If the break statement is inside a nested loop (loop inside another loop), the break will terminate the innermost loop.
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 2. | Page 88
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×