Question Bank (2 marks) · Q35
Q.What is the use of break statement? Write it syntax.
Karnataka PUCTextbookShort· 2mImportance★★★★★est
97% · 150/154 Questions
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →[!TLDR]
break immediately exits the innermost loop or switch; syntax is break;.
The break statement transfers control out of the loop or switch in which it appears, ignoring any remaining iterations or cases. It is commonly used to stop a loop when a required condition is met, and to end each case of a switch so that control does not fall through to the next case. It is written on its o …
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.